Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^6: Cloning shared hashrefby jwba (Novice) |
on Mar 17, 2011 at 19:05 UTC ( [id://893835]=note: print w/replies, xml ) | Need Help?? |
Sure. I was running some functions in separate threads, returning graph-like structures (feature annotations of genome data), e.g.
I put everything in a result queue of type Thread::Queue. I dequeue and freeze the results to a YAML file after the program finishes, so that I don't have to calculate everything again and again. Unfortunately, Thread::Queue does a shared_clone on everything one throws at it. This fact leads to the mentioned 'program requirements':
In Section
Seekers of Perl Wisdom
|
|