Hacker News new | ask | show | jobs
by Mithaldu 5440 days ago
I'm summarizing explanations from the #moose irc channel now:

Yes, type checks are the main source for performance issue.

However, they are completely optional. This means you can safely disable them in places where you think you don't need them, and only enable them where you think you do. Keep in mind that writing something manually though won't be faster.

This means, that when performance is an issue, your first step would be to fork your dependency and disable type checks. That should get you almost the same speed as a complete Moose-free rewrite, at a fraction of the cost of an actual rewrite. If that really isn't enough, you're likely to get better performance by rewriting in C, than in Moose-free Perl.

1 comments

Good feedback. Thanks!