Only explicitly shared data gets cloned on thread creationNo, it is exactly the opposite, everything but shared data gets cloned when a thread is created.
It is my impression that unshared items get cloned but that shared items get cloned and then a third item is created to mediate between the two clones. So slightly worse in terms of efficiency of thread creation.
- tye
In reply to Re^13: Slow evolution of Perl = Perl is a closed Word (data cloning)
by tye
in thread Slow evolution of Perl = Perl is a closed Word
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |