Re: Hm. ItemFactory vs. gtk2-perl 0.90 ? :)



Quoting Joe Smith <jes martnet com>:
<snip>
I took a shot at avoiding all the copying to a bunch of local variables;
the guts of it, as tested in the benchmark, are as fast as Ross' or 
faster (see the attached diff).  Hah!
</snip>

Cheating! Cheating!  The variable @j2_keys is empty when the function is called
(it doesn't get filled until AFTER the benchmarks run, you need a BEGIN {}). 
You moved code out of the function.  You should allow the brett function to use
that variable as well and your error message is not equivalent.  And still you
only beat the ross function in the fourth case -- which is the unlikely
"everything is wrong" case.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]