So I finally got some time to play with this and I still can't wrap my head around it.
If I understand it correctly, the trick is in the fact that you:
to get this memory where the DB is loaded shared with all the threadsshared_clone( $dbh )
Is that even remotely correct? :-) And if so:
? Why pass the string to the thread and then just dequeue it? And what's the relation to waiting for DB?$Q->nq( ('Wakey wakey') x $T ); ... $Q->dq; ## Wait for DB
In reply to Re^6: threads::shared seems to kill performance (Workaround).
by Jacobs
in thread threads::shared seems to kill performance
by Jacobs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |