Hi!

> Of course calling e.g. strpos() should not trigger the auto-loader
> repeatedly - can we cache the information that the auto-loader was
> attempted once during the current script execution? so that e.g. only the
> first call to strpos() triggers the auto-loader?

I think triggering it even once for *every* internal function in the
code may be too much.

> I suppose it would still happen once for every namespace from which
> strpos() gets called, so maybe this optimization doesn't help much.

Exactly. Also, caching stuff assumes static environment. What if it
changes, e.g. autoloader gets different configuration?
-- 
Stas Malyshev
smalys...@gmail.com

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to