Don't make a method object for calls to has_method, just for get_method
authorDave Rolsky <autarch@urth.org>
Thu, 19 Aug 2010 04:29:08 +0000 (06:29 +0200)
committerDave Rolsky <autarch@urth.org>
Thu, 19 Aug 2010 04:32:45 +0000 (06:32 +0200)
commit1865cd32b3742abbe4fb52d43e950cae7bf32943
tree16b373c5f290190acd540871fbc4eb3a6d56fabd
parent7f9ef61ea70b35f1bf8bfef01bbc21300a4c9095
Don't make a method object for calls to has_method, just for get_method

This speeds things up a bit more, since we can check for the existence of a
method without actually inflating a code ref into a method object.
lib/Class/MOP/Mixin/HasMethods.pm