MooseX::Singleton is slow
cross-posted from dams blog
MooseX::Singleton is slow
Just a quick note : if you plan to use MooseX::Singleton, beware ! It is easy to use and it implements properly what it claims, however it is quite slow.
If my profilings are corrects, each call to ->instance() calls meta(),
get_metaclass_by_name() one time, and blessed() two…
I blog about Perl.