in reply to Re^3: How to use my two processors
in thread Need a faster way to find matches
I think I'd have to re-framed the overall algorithm to take advantage of many processors; then, it may have been more efficient to multi-thread and partition like you suggested.
The time dropped to 44% of the original (2.25 times faster). Some of the speed came not from the threading, but just learning how to write more efficient perl statements. I learned that there are expensive operations in perl and some very fast operations... I ended up tweaking many, and changing how I was storing the data to take advantage of these realities.
I am sure the program could be made even faster once I understand perl a bit better.
Thank you to everyone for your help!
|
|---|