in reply to Making my Perl program a bit faster
I ... am calling the DB about 5 times per run...
Does "one run" mean one command-line execution of the script? How many keys do you generate in one run?
If you are doing lots of runs, part of the slowness will be at the level of the shell, having to build up and tear down a process for each run. Ideally, one run (lasting up to 8 hours or whatever) should minimize this sort of processing overhead.
Apart from that, it's probably more a question of algorithm, and you haven't given us any clues on this. How complicated is the procedure to come up with "normalized keys"? How big does the script really need to be to do this?
And how often do you have to come up with "normalized keys" for a million entries? (Does this need to be done repeatedly? If not, just run it for 8 hours and be done with it -- why worry about timing?)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Making my Perl program a bit faster
by mrguy123 (Hermit) on Jul 08, 2009 at 20:07 UTC | |
by graff (Chancellor) on Jul 08, 2009 at 22:04 UTC | |
by moritz (Cardinal) on Jul 08, 2009 at 22:42 UTC | |
by mrguy123 (Hermit) on Jul 09, 2009 at 04:59 UTC |