Re: Do symbol references always go through a hash table?

From: Date: Wed, 18 May 2016 03:06:01 +0000
Subject: Re: Do symbol references always go through a hash table?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-93390@lists.php.net to get a copy of this message
On Tue, May 17, 2016 at 7:51 PM, Jesse Schalken <me@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

« previous php.internals (#93390) next »