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 times.
So for now I’ll avoid it and implement a simplified version using something
similar to this :