in reply to Re^18: Strange memory leak using just threads (forks.pm)
in thread Strange memory leak using just threads
Let me quote:
And the tests are not correct BTW. Time required for creating new thread depends on the size of all existing variables.
Yes. That is an annoying detail of the ithreads implementation. But, it is quite easy to avoid; you just spawn your workers early, and have them require rather than use what they (individually) need.
So, if worker threads require some heavy module, you have to use it before starting these threads (and I don't mean cases where you need just single worker thread), and it may seriously increase worker threads startup time, and it is not easy to avoid.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^20: Strange memory leak using just threads (forks.pm)
by BrowserUk (Patriarch) on Sep 23, 2010 at 15:34 UTC | |
by zwon (Abbot) on Sep 23, 2010 at 16:54 UTC | |
by BrowserUk (Patriarch) on Sep 23, 2010 at 17:23 UTC | |
by Anonymous Monk on Sep 23, 2010 at 20:42 UTC | |
by BrowserUk (Patriarch) on Sep 23, 2010 at 22:45 UTC | |
|