This is merely a suggestion for consideration.

Space characters are commonly used within and between key-value pairs in 
associative arrays to improve human readability.  Because 'gauge-data.txt' 
human-readability isn't important, the file could be reduced in size 158 
bytes, plus another 15 bytes if spaces after commas in the "WindRoseData" 
string were removed, which would make the file 10 percent smaller.

173 bytes doesn't seem like much. However, with 3-second updates there will 
86400 / 3 = 28,800 file transmissions per day to each concurrent user.  
28,800 x 173 bytes = 4,982,400 unnecessary bytes-per-day-per-user.  It is 
not uncommon for individual pages at active websites to have large numbers 
of concurrent visitors, so why waste the bandwidth and processing time?

Bob

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to