rsFalse has asked for the wisdom of the Perl Monks concerning the following question:
Secondly, I compared arrays by string equality, by interpolating upto-9-digit integers into strings.@{ $h{ $key } } ~~ @{ $g{ $key } } and ... ;
The second way have shown ~1.6x faster times."@{ $h{ $key } }" eq "@{ $g{ $key } }" and ... ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Speed of comparison of two one-dimensional arrays
by hippo (Archbishop) on Mar 12, 2019 at 14:59 UTC | |
|
Re: Speed of comparison of two one-dimensional arrays
by thanos1983 (Parson) on Mar 12, 2019 at 14:20 UTC | |
|
Re: Speed of comparison of two one-dimensional arrays
by tobyink (Canon) on Mar 12, 2019 at 16:23 UTC | |
by tobyink (Canon) on Mar 12, 2019 at 20:02 UTC | |
by Aldebaran (Curate) on Mar 13, 2019 at 01:38 UTC | |
by tobyink (Canon) on Mar 13, 2019 at 14:27 UTC |