ARSperl: ETIMEOUT

jdavidb on 2002-06-20T15:15:38

Does anyone work with ARSperl? More specifically, does anyone work on the ARSperl module itself? I sent the author a patch last week that makes a great speedup with the object-oriented interface. No response, so far. I was curious if anyone knows anything about the people behind the module. There's a mailing list, but I haven't joined it yet.

Basically ARSperl's OO interface uses a lot of methods with named parameters in the style of CGI.pm. In fact it's so like the style of CGI.pm that they copied the named parameter handling subroutine straight out of CGI.pm. Unfortunately the routine wasn't very efficient, and CGI.pm has moved on to a more efficient version of the same routine, which it now exports from CGI::Util. (It might have exported it before; I don't know.) By replacing the ARSperl definition of the routine with a use statement to import the routine from CGI::Util, I was able to speed up a small program by several seconds.

I discovered all this because I profiled my code. My thanks to everyone who gave me the right pointers to learn how to profile!