Optimization: it's really slow to go through new_object for every access so
authorShawn M Moore <sartak@gmail.com>
Sun, 16 Dec 2007 19:11:16 +0000 (19:11 +0000)
committerShawn M Moore <sartak@gmail.com>
Sun, 16 Dec 2007 19:11:16 +0000 (19:11 +0000)
commitef266b1fc2be836aebc622df0d05eb2e9e546789
tree60505cfb77548afe9c270a83db70273bd654c598
parent3822ace201bf25804b3b760238b59df07890c634
Optimization: it's really slow to go through new_object for every access so
return the singleton if we see it already exists, which it will every
single except the first.

It's not particularly Moosey but it'll do for a first CPAN release.
lib/MooseX/Singleton/Meta/Instance.pm