Optimize Plone.org with slimmer.py

http://plone.org/

15th of February 2005

If you do a speed report on Plone.org you notice that the three biggest files it services are plone.css, plone_javascripts.js and index.html. If you run these through my little slimmer whitespace optimizing program in Python you get the following results:

 $ python slimmer.py --test http://plone.org/plone.css
 Took 0.016 seconds
 Bytes before: 29355
 Bytes after:  20265
 Bytes saved:  9090  (69.0% of original size)

 $ python slimmer.py --test http://plone.org/plone_javascripts.js
 Took 0.057 seconds
 Bytes before: 27251
 Bytes after:  19974
 Bytes saved:  7277  (73.0% of original size)

 $ python slimmer.py --test http://plone.org/ 
 Took 0.029 seconds
 Bytes before: 37186
 Bytes after:  26466
 Bytes saved:  10720 (10K)  (71.0% of original size)

Using an on-the-fly whitespace optimizer isn't always the right thing to do but in the case of this particular site you prevent serving: 26Kb in 0.1 seconds (on this computer).

26Kb isn't a lot by looking at their traffic summary you see that they could serve 3.3Gb less per month (before gzip compression). That's a big save.



Comment

Show all 13 comments
 
Name:
Email:
hide my email address.

Your email address will be encoded to prevent email-extraction spiders from reading it so you won't get spammed if you decide to show your email address.