Tuesday, August 8, 2017

All the Data Bloat

A little foreward...  This is not a 'bitch' post, it is merely a set of observations.  If anyone takes offense, perhaps they should be reviewing how they code and store data.

96 bytes.  That's all I need.  This specific information I want for the next three days and nights can be represented in 96 bytes.  Could someone please answer this question?  Why are these 96 bytes wrapped in 144,383 bytes of HTML, JavaScript and CSS?  Additionaly, this doesn't count the over 20,000,000 bytes for images.

Let's factor in transfer and render time.  A transfer of 96 bytes, with its necessary TCP/IP communications protocol overhead, is quite fast.  Even from Antarctica to here, a 96 byte transfer is VERY quick.

Rendering what this 96 bytes represents is equally quick.  Rendering a 20,000,000 byte page in a browser requires decrypting stuff and processing CSS layout information and running JavaScript code and converting images into bitmaps for display and handling any necessary animated graphics.  My particular computer at this time, an eight core AMD Vishera FX CPU, 16 GB RAM and 15MBs internet connection requires maybe 5 seconds to retrieve this page and display its graphical representation.

96 bytes?  Nearly instantaneous.

What do these 96 bytes represent?  It is the current local weather conditions, and the forecast for tonight and the following three days and nights.  12 bytes for each day/night.
Precipitation Percent: one byte
Sky Conditions one byte
Weather Condition: one byte
Temperature: one word
Wind Speed: one byte
Barometer: float (four bytes)
Wind Direction; one byte
Visibility: one byte

Other things might be OK to add; perhaps humidity, barometric trend, watches and warnings, sunrise, sunset, moonrise and moonset.  Still, after adding these items, the 96 bytes would become a still slim 152 bytes.

My benchmark page, weighing in at a hefty 20MB is here:  New Boston, Illinois Wunderground

Rather than slim and narrow, wide is apparently a 'thing'.  Are all the additional abstraction layers and frameworks and graphics and tracking completely necessary???

Please...   Think about slimming the data when working on your next project.

Remember, the old maxim 'Less is More'  holds especially true in the world of computer programming.

No comments:

Post a Comment