Philippe M. Chiasson wrote:

And indeed there is bug for non-ithreads perl builds, where it was caching the compiled anonsub, but w/o incrementing the refcount. The fix is as follows, trying to write a good test for it before I commit that.


Nice catch there stas! With your patch applied:

All tests successful, 16 tests skipped.
Files=218, Tests=3295, 165 wallclock secs (103.54 cusr + 15.36 csys = 118.90 CPU)

Well it was my fault in first place, as I didn't have a test for this case when I wrote that code, so it was never tested.


That's said at the moment anonymous sub handlers and inlined in httpd.conf handlers should be avoided, since they will be recompiled each time they are used and Perl is threaded. One day there will be a more efficient solution, but at the moment it's not very good.

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to