HTTP::Engine drops Moose for Shika, gains massive speedup

When I recently benchmarked several Perl website development tools, HTTP::Engine had dismal performance. The slowest performer, it took 1.5 seconds just to print "Hello World" in a CGI environment and took 14.6 megs of memory to it.

Today the first HTTP::Engine release appeared that replaces Moose with Shika. Shika provides the essential class-building tools that HTTP::Engine needs with a Moose-compatible syntax, and strips out the rest of the magic.

The performance improvement was dramatic. The "Hello World" time dropped to 0.19seconds on the same hardware (almost 10 times as fast!) and the memory usage dropped to 6.6 Megs.

Catalyst is currently slated to use Moose in the next major version. Now that HTTP::Engine has switched away from Moose for better performance and memory savings, will other projects follow suit?

Recent Entries

  • generating HTTP headers: sorted or unsorted?

    Recently I've been reviewing how various Perl frameworks and modules generate HTTP headers. After reviewing several approaches, it's clear that there are two major...

  • The cost of saving sent e-mail

    I don't tap my own phone. I don't xerox postcards before I mail them back from vacation. I don't take a voice recorder when...

  • Modifying PDFs so they open full screen

    The [PDF spec](http://www.adobe.com/devnet/pdf/pdf_reference_archive.html) includes an option to cause PDFs to open full screen when users open them. I'm a fan of the feature because...

  • Stewardship and Sustainability of our online lives

    A few weeks ago I had my laptop stolen. Earlier that morning I had been reflecting and writing on the laptop about the intersection...

  • A vision for CGI.pm and CGI::Simple

    I've spent a lot time recently [triaging bugs for CGI.pm](http://mark.stosberg.com/blog/2009/08/almost-100-cgipm-bugs-closed-help-with-the-50-still-open.html). I've enjoyed the process, and respect CGI.pm as a widely used Perl module. I'm...

Close