PerlDancer/Dancer2 — pull request #132 by celogeek (2012-12-15 14:09:51+00:00)
Title: Xs dancer code request

I have add improvement on Dancer::Core::Request.

If URL::Encode::XS is installed, it will use it instead of pure perl _url_encode
To parse the params I check if CGI::Deurl::XS is present, and I use parse_query_string from it.

Both is a a lot of faster than pure perl version.

I have made a speed test to compare,

pure perl (master branch): 3472 Dancer::Core::Request->new per second
with XS (my branch) : 3900 Dancer::Core::Request->new per second

I have add a comment in the request for extra speed, and add a diag in the request.t to tell people to install them for extra speed.

It is not a dependencies, but it speed up dancer if they are present.