I don't think that's a good idea in perl. If all data would be shared, than perl would have to lock any piece of data it reads or writes, and that would be a major speed penalty (and maybe memory too, I'm not sure). Also if data are shared than the memory management has to be shared too, because any thread might have to free any data (when it finds that the reference count has dropped to zero) and that would also be a minor slowdown.
In reply to Re: TIMTOWTDI vs. ithreads
by ambrus
in thread TIMTOWTDI vs. ithreads
by nothingmuch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |