Simple. Don't load everything into every thread.
Those two steps alone cut the load time by half on my machine:
C:\test>junk rem As your posted it. Took 4.529284 seconds C:\test>junk rem Tk required after threads started. Took 3.111319 seconds C:\test>junk rem DBI/DBD moved to separate thread. Took 2.166010 seconds
And that is (probably) only the tip of the iceberg. With proper sight of your real code, there are probably lots more simple steps that could be done to improve things no end.
In reply to Re^8: Use more threads.
by BrowserUk
in thread Use more threads.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |