On Thu, Oct 05, 2006 at 06:43:42PM -0700, Jerry Hedden wrote:
> Jerry Hedden wrote:
> > 1. Speed - retrieving the TID is faster than generating a
> > 'threads=SCALAR(0x100110ec)' string.
>
> I did the tests: This is a 5X (i.e. 400%) speed improvement!!!
[snip]
> > Anyway, why are you using overloading if you care about
> > speed? I never bench marked it myself to see the
> > difference but I've gotten the impression that just having
> > this present in the class makes doing anything with the
> > object slower. For sure I've noticed a whole heap of
> > additional ISA walking when I've instrumented that on
> > overloverloaded objects.
>
> Unlike you, I did do the tests, and the overloading only
> costs 7% which is in the grass compared with the other
> improvements reported above.
>
> The bottom line in that $hash{$thr} and "$thr" are both more
> than 5 times faster with ""-overloading than without it.
I can see no reason why anyone would believe these numbers without
seeing the tests. Not that the speed argument is valid anyway.
--
Rick Delaney
[EMAIL PROTECTED]