Ricardo SIGNES wrote:
Did anyone (Mark?) look at the performance hit that Class::MOP will cause?
I've only taken a quick look, but it looks like the total user time to run test
suite goes up nearly 50% with this patch.

I hadn't done that, but it's certainly worth doing. I did just a few tests now, and found something on the order of a 10 to 25% increase.

I'm assuming that a more hook-laden class will suffer even more.  Benchmarks?

Not necessarily. It depends on whether the time is mostly in the module-load time, or the method call time. Looking at the code, I see some caching in the actual method call, so I suspect the module load time.

Still, the performance hit is enough for me to want to revert the patch.
It was interesting to learn about how this will work in Perl6, but considering this drawback, I can wait for the Perl6 port to actually apply the knowledge!

Thanks for your attentive to this.

I'll report our results back to the Class::MOP author.

  Mark



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to