http://qs321.pair.com?node_id=82613


in reply to RE: RE: My views on pseudohashes
in thread My views on pseudohashes

Hi,

I'm developing an application that creates a binary tree of objects.
Previously they were all hash-based, but using pseudohashes has sped up processing by about 3 times!

Having to use "no strict 'refs';" does worry me a bit though...

Are pseudohashes really implemented in perl, or just a hack? will they be supported in future versions?

Replies are listed 'Best First'.
Re: Re: RE: RE: My views on pseudohashes
by chipmunk (Parson) on May 23, 2001 at 23:35 UTC
    If you're using no strict 'refs', you're doing something wrong. Pseudohashes work just fine under strict refs.

    It was recently decided on p5p that the current implementation of pseudohashes, as an array ref where the first element is a hash ref, will be deprecated. Pseudohashes themselves will continue to exist, however, hopefully with a more reasonable implementation. :)