in reply to Re: Need to process a tab delimted file *FAST*
in thread Need to process a tab delimted file *FAST*
Another small speedup. Don't use keys to dump data into an array that only exists for you to run through it. Just run directly through the array.
If you can figure out how to push both the data and this work to a decent relational database, you will see bigger speedups still.
Moving to a faster machine always helps. If your code is I/O bound and you can parallelize it, then that can speed things up. The same happens if you are CPU bound and have multiple CPUs or computers to take advantage of.
But at 0.0008 seconds per record, if it takes over 60 seconds, then you have over 75,000 records. At some point you have to understand that computers are not magic. Doing work takes time. You aren't going to hit a particular performance level just because the powers that be said that you must.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Need to process a tab delimted file *FAST*
by fizbin (Chaplain) on Mar 04, 2004 at 01:59 UTC |