Yes, Patchou -- This is the problem with zipping. However, even now, without much change, filesizes could be reduced by over half in most cases...
code:
<tr><th><span class="time">(16:06)</span> Gary: </th><td style="font-family:"Georgia";color:#000080;font-weight:bold;">almost got parking ticket</td></tr>
166 bytes
This line could be reduced to simply...
code:
<tr><th><i>(16:06)</i> Gary: </th><td class="a">almost got parking ticket</td></tr>
83 bytes -- 50% Reduction
So what did I do?
1: Replaced <span class="time"> to <i> and also replaced the CSS entry .mplsession table th span.time {color:#949494;font-weight:normal;} with...
code:
.mplsession table tr i {font-style:normal;color:#949494;font-weight:normal;}
2: Replaced style="X" with class="a" ... How this works is by adding an entry to CSS like so...
code:
td.a { font-family:Georgia;color:#000080;font-weight:bold; }
td.b { font-family:"Microsoft Sans Serif";color:#FF00FF; }
a relates to one persons colour, and
b for another, more can be added obviously like c, d, e, f, .... you get the picture.
A simple function could be made
AddCssColour(<css code>) and simply use base 26 to increment. Then
GetCurrentCssColour(<contact id>) to get the CSS class name.
I also removed trailing spaces and newlines, which removes a further 4 bytes for every line, which would amount to 23KB of pure junk over 6000 lines, why not?
-------------
Using these simple changes:
Original filesize: 2.13MB
New, reduced filesize: 1.16MB - 54% reduction!
Not only would files load twice as quick, it would reduce amount of data in memory, amount being written to disk and increase encrypting and decrypting speed.
These changes wouldn't affect old log files, but I think could easily be incorporated to improve future versions of Plus!