Heiko Braun Software Engineer

AS7 Console performance improvements

I did take a look at the components that serve the console files again and removed some really sloppy parts and tweaked the HTTP cache behavior a little bit. With some really interesting results.

This is what the average page loading time looked like, when client did access the console for the first time:

<img style=”display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 11px;” src=”http://3.bp.blogspot.com/-C05kyKehBck/Tfdj63RKnSI/AAAAAAAAAK0/NA3fePFjSxI/s320/Screen%2Bshot%2B2011-06-14%2Bat%2B3.36.19%2BPM.png” border=”0” alt=”“id=”BLOGGER_PHOTO_ID_5618068923087494434” />

This is what looks like after the improvements:

<img style=”display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 12px;” src=”http://4.bp.blogspot.com/-75wXCg4ZmvA/TfdkOa3tASI/AAAAAAAAAK8/5iUIt9DQYuE/s320/Screen%2Bshot%2B2011-06-14%2Bat%2B3.37.04%2BPM.png” border=”0” alt=”“id=”BLOGGER_PHOTO_ID_5618069259061887266” />

It get’s even better, when a client does access the console subsequently:

<img style=”display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 13px;” src=”http://3.bp.blogspot.com/-7qu7S2ybYBE/TfdkeniHneI/AAAAAAAAALE/W09fAkhMfVk/s320/Screen%2Bshot%2B2011-06-14%2Bat%2B3.38.40%2BPM.png” border=”0” alt=”“id=”BLOGGER_PHOTO_ID_5618069537338924514” />

How can it be explained?

Well the most notable improvement is probably the replacement of the sloppy IO parts. Hence the drastic page loading times from ~4sec to ~1sec. Furthermore the addition of an HTTP “Expires” header allows the browser to successfully cache the results, which drastically decreases the page loading size from ~750kb ~10kb. All tests have been run on a LAN connection.