Optimization is much more than just two variables. You haven't taken into consideration memory allocation, for example.
I'd recommend that you set a goal -- the time in which you want your program to complete by, given your existing hardware.
Then, you write your program, and if it doesn't meet the goal time, then you can work on optimization. I personally monitor what's going on using system utilities (vmstat, iostat, etc). I don't know enough about windows to offer recommentations on similar programs for windows
Also, from the info you've given (20M records, totalling 1GB), I'm guessing there is a chance that memory is your problem. You might want to use a tied hash, or just directly use a database.
In reply to Re: How do I measure my bottle ?
by jhourcle
in thread How do I measure my bottle ?
by cbrain
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |