RE: question on Perl determinism with hash keys



Timothy et al:

Thanks, I did mean in the same order.

Any idea on the relative performance of a hash tied to IxHash vs. a
vanilla hash?

I have a Perl program with many hashes whose entries are created and
destroyed at a high rate, and I'm wondering if I can expect a
performance hit if I make this change...

Gavin

-----Original Message-----
From: Timothy Johnson [mailto:tjohnson@xxxxxxxxxxxx]
Sent: Tuesday, May 16, 2006 5:28 PM
To: Gavin Bowlby; beginners@xxxxxxxx
Subject: RE: question on Perl determinism with hash keys


If you mean in the same order, then no.

perldoc -q order




-----Original Message-----
From: Gavin Bowlby [mailto:gavin.bowlby@xxxxxxxxxx]
Sent: Tuesday, May 16, 2006 5:25 PM
To: beginners@xxxxxxxx
Subject: question on Perl determinism with hash keys

All:

If I populate a %hash within a Perl program, is there any guarantee that
from run to run of the same Perl program the keys(%hash) function will
return identical sets of keys?



.



Relevant Pages

  • non-determinate program execution in perl
    ... I have a perl program that runs every hour that scans a POP3 maildrop. ... About once every other day the program fails and I get this error: ... It appears to me that the hash isn't being properly initialized. ... Here is the code that initializes the hash. ...
    (Debian-User)
  • Re: Can you tell me how to change from regular Perl to Mod_perl
    ... Hash: SHA1 ... > then all my old perl program can work with mod_perl? ... =rSyG ...
    (comp.lang.perl.misc)
  • Re: Store Object Class in DBM Hash
    ... simplicities sake I created a small perl program to demonstrate what I ... sub docno ... If I run this program with the DBM hash it returns "Can't locate ...
    (comp.lang.perl.misc)
  • question on Perl determinism with hash keys
    ... If I populate a %hash within a Perl program, is there any guarantee that ... from run to run of the same Perl program the keysfunction will ...
    (perl.beginners)