Hello Stanislav,

Friday, March 14, 2008, 6:48:52 PM, you wrote:

> Hi!

>> Lemme just think, doing inheritance at compile time before we send the stuff
>> to an opcode cache can be slower then? How is that possible? After all late
>> binding means we do it at run time. And no matter how much faster we can do
>> it. It will always be slower than doing the same thing only once.

> I'm taking this off-list because it doesn't seem to go any direction it 
> can be useful for people to read.

Hmm, so other people must not read what we discuss, that does not work.

> Repeating again: it can not be done "only once". Not with opcode caches 
> present and bound entities living in separate file. This thing is not 
> possible. If you do not believe it - try to implement it and see.

That is my point. It can be done. The reason to delay inheritance is that we
can have a conditional statement around a class definition. If we detect
classes that do not have conditionals around them, then we can bind them
early. It is as easy as that. So instead of making the language more
dynamic and even removing a chance of having inheritance dones early where
possible we should work on making the desired case - eraly binding - as
easy as possible.

marcus


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

Reply via email to