I tried making the threads persistent and read data from a queue, but that was MUCH slower.
Sounds to me like you are doing something very strange. Creating a Perl "thread" is rather expensive. Much more expensive than pulling an item from a queue. Usually much, much more expensive.
- tye
In reply to Re^3: shared scalar freed early (queue)
by tye
in thread shared scalar freed early
by chris212
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |