On Tue, May 17, 2016 at 7:51 PM, Jesse Schalken <m...@jesseschalken.com> wrote: > Does that mean a function which accepts an instance of an interface and > calls a method on it will have to do a full lookup of the method whenever > the concrete class isn't the same as when that function was first executed? > (or was last executed, depending on how the cache works) > Yes, but that doesn't mean you should micro-optimize around it. Just write code that's easy to maintain and trust the compiler to do the best job at making it not-slow. :)
-Sara -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php