|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: How to improve this data structure?by space_monk (Chaplain) |
| on May 21, 2013 at 23:14 UTC ( [id://1034637]=note: print w/replies, xml ) | Need Help?? |
|
Everyone else has offered good advice on the array processing, however it may also be worth asking how you are reading the data from the file. At one million lines of data, improvements in transferring the data from file to memory may also cut your runtime
If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||