Hacker News new | ask | show | jobs
by stevan_little 5440 days ago
Yes, but this is an optional part of the base package and one of the places in Moose where you pay for how much you use it. In the end, you can simply comment out the type check if it is causing performance issues.

I would be interested to know what version of Moose you used when you made this judgement? Because, the recent 2.0200 version includes inlined type constraints, which provided a non-trivial boost in performance for the native types as well as custom types (provided you include an inlined version in your custom type). If you were profile your code again, you might find a sizable change (and if not, please feel free to send the profile output to the Moose mailing list for us to review).