On Fri, 1 Aug 2008, Dmitry Stogov wrote:

> The whole idea is great, but it'll work without problems only if
> switch-tables are constructed at compile (or optimization) time.
> 
> The idea also won't work with variables and unresolved constants as
> "case" labels (I saw your extension already carries about this limitation).
> 
> I think the proper way to implement the idea is introducing a new opcode
> ZEND_SWITCH which has switch table as IS_CONSTANT_ARRAY operand.

Doesn't this make more sense to do in an optimizer? I thought the 
general idea was that we don't try to make the compiler do all the heavy 
optimizations.. as there are many more we could do here.

regards,
Derick
-- 
HEAD before 5_3!: http://tinyurl.com/6d2esb
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org

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

Reply via email to