I don't see anything obviously wrong with your code. A couple of suggestions for tracking it down:
This looks to me like it needs some straightforward debugging to figure out where your bottleneck is.
In reply to Re: Slow worker threads
by jrsimmon
in thread Slow worker threads
by pome23
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |