Re: question on Perl determinism with hash keys

2006-05-17 Thread Randal L. Schwartz
> "Gavin" == Gavin Bowlby <[EMAIL PROTECTED]> writes: Gavin> Does anyone have any performance data on this? Yes, tie kills hash access by about a factor of 10. Don't do it. Use *any* other means. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.sto

RE: question on Perl determinism with hash keys

2006-05-17 Thread Gavin Bowlby
ta 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 Bowl

Re: question on Perl determinism with hash keys

2006-05-17 Thread Randal L. Schwartz
> ""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 wh

RE: question on Perl determinism with hash keys

2006-05-16 Thread Gavin Bowlby
2006 6:15 PM To: Gavin Bowlby; beginners@perl.org Subject: RE: question on Perl determinism with hash keys Understandable. Why do you need the keys function to return the keys in the same order? What is it that you're trying to do? -Original Message- From: Gavin Bowlby [mai

RE: question on Perl determinism with hash keys

2006-05-16 Thread Timothy Johnson
ROTECTED] Sent: Tuesday, May 16, 2006 5:47 PM To: Gavin Bowlby; beginners@perl.org Subject: RE: question on Perl determinism with hash keys I personally have never felt the need. One thing I'll often do is a foreach(sort keys %hash){ #do something... } If yo

RE: question on Perl determinism with hash keys

2006-05-16 Thread Gavin Bowlby
5:47 PM To: Gavin Bowlby; beginners@perl.org Subject: RE: question on Perl determinism with hash keys I personally have never felt the need. One thing I'll often do is a foreach(sort keys %hash){ #do something... } If you know what the keys are going to be ahe

RE: question on Perl determinism with hash keys

2006-05-16 Thread Timothy Johnson
EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 5:37 PM To: Timothy Johnson; beginners@perl.org Subject: 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 pr

Re: question on Perl determinism with hash keys

2006-05-16 Thread John W. Krahn
Gavin Bowlby wrote: > All: Hello, > 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? Can I assume that you are worried about the order of the keys? Do you want the k

RE: question on Perl determinism with hash keys

2006-05-16 Thread Gavin Bowlby
make this change... Gavin -Original Message- From: Timothy Johnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 5:28 PM To: Gavin Bowlby; beginners@perl.org Subject: RE: question on Perl determinism with hash keys If you mean in the same order, then no. perldoc -q

RE: question on Perl determinism with hash keys

2006-05-16 Thread Timothy Johnson
If you mean in the same order, then no. perldoc -q order -Original Message- From: Gavin Bowlby [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 5:25 PM To: beginners@perl.org Subject: question on Perl determinism with hash keys All: If I populate a %hash within a Perl program,