pwnt.be

Sunday, May 22, 2005, 08:40 PM CET

I just implemented on-the-fly gzip compression here. It was fairly easy, since my (Perl) script uses HTML::Template, so all I had to do—after checking if the client supports gzip, via the Accept-Encoding HTTP header—was find a way to zip the return value of $template->output(). Compress::Zlib::memGzip() gets the job done and it’s about a third faster than invoking gzip. Yay.

Post a Comment

This contraption supports Gravatar, as well as Markdown with SmartyPants. If none of that made sense to you, feel free to ignore it and start typing.

  • :)
  • :D
  • ;)
  • :-O
  • :P
  • :@
  • :$
  • :S
  • :(
  • :'(
  • :|
  • :-#
  • 8-|
  • ^o)
  • :-*
  • +o(
  • :^)
  • *-)
  • 8-)
  • |-)
Disorientation
Continuity
Retributions
Introducing Pwnt.TagSphere
Tim, John Brand
Lplayer for the Rest of Us
Tim, PixelPirate
Pidgin to Adium Emoticon Theme Converter
Tom, Tim, peter
The HTC Desire Kicks the HTC Legend’s Ass
Tom, Tim, Tom, Tim, Tim, Tom
Google Chrome Still Sucks
smeezekitty, Tim, milosh
Colophonics