What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! General » Log Viewer is slow with large chat logs

Log Viewer is slow with large chat logs
Author: Message:
garreh
New Member
*


Posts: 4
Joined: Feb 2008
O.P. RE: Log Viewer is slow with large chat logs
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:&quot;Georgia&quot;;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!
02-13-2008 10:06 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Log Viewer is slow with large chat logs - by garreh on 02-08-2008 at 10:05 PM
RE: Log Viewer is slow with large chat logs - by Patchou on 02-08-2008 at 10:11 PM
RE: Log Viewer is slow with large chat logs - by garreh on 02-08-2008 at 10:24 PM
RE: Log Viewer is slow with large chat logs - by Matti on 02-09-2008 at 09:27 AM
RE: Log Viewer is slow with large chat logs - by garreh on 02-09-2008 at 02:52 PM
RE: Log Viewer is slow with large chat logs - by Patchou on 02-13-2008 at 06:29 PM
RE: Log Viewer is slow with large chat logs - by garreh on 02-13-2008 at 10:06 PM
RE: Log Viewer is slow with large chat logs - by Patchou on 02-13-2008 at 10:52 PM
RE: Log Viewer is slow with large chat logs - by ahmetgns on 02-29-2008 at 12:01 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On