The IxHash tie appears to have been created to allow identical (same
ordering) sets of keys to be returned across multiple runs of the same
Perl code.

My question was on the performance of the IxHash tie used with hashes
compared to "vanilla" hashes.

Does anyone have any performance data on this?

Regards,

Gavin Bowlby

-----Original Message-----
From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 17, 2006 6:47 AM
To: beginners@perl.org
Subject: Re: question on Perl determinism with hash keys

>>>>> ""Gavin" == "Gavin Bowlby" <[EMAIL PROTECTED]> writes:

"Gavin> It's important that user scripts are dispatched in identical
order
"Gavin> across runs for repeatability and debugging, and the general
sanity of
"Gavin> the users and the developer.

Then add a serial number, and sort on that when you need to pull things.
You're not going to get much better.  A hash is optimized for finding
things
quickly.  A list is optimized for ordering.  Choose one of the two, and
create
a data structure to hold it.

You might have a separate queue where you create the hash entry, then
push the
item onto the end of the queue.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to