On Sat, Sep 01, 2001 at 03:29:23PM -0400, Bryan C. Warnock wrote:
>       30 -> store 
> 
> plus a bunch of null ops.

Not strictly true. Constant folding is done by running the interpreter on a
tiny portion of the opcode tree and splicing the result in. No null ops there.

> sub foo {
>     no optimizations;
>     ...
> }
> 
> or
>     {
>         local $opt = (ref $obj eq "SomeNewObject"); 
>         # If the $obj has changed, don't run any optimizations
>     }
 
Ah, you've seen optimize.pm from CPAN, then?
 
> [1] Chain?  Branch?  What's the correct terminology here?

Tree. :)

Simon

Reply via email to