share packages

[email protected] ("Jose L. Hernandez")
Newsgroups perl.ithreads
Message-ID <[email protected]>
Hi,
 
I'm working on a server application based on the boss-worker threads model.
My problem is that the worker threads use a lot of packages, and the memory
usage is too high.
Is it possible to share the memory used by the modules? I don't understand
why it is getting cloned for every thread I start. 
 
Something like  "use MyPackage : shared; " would be nice...
 
Thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.