Welcome to the Monastery | |
PerlMonks |
Re: Prima + MCE::Hobo demonstrationby marioroy (Prior) |
on May 01, 2017 at 18:45 UTC ( [id://1189279]=note: print w/replies, xml ) | Need Help?? |
Respected Monks, An upcoming release (MCE::Shared 1.826) continues forward with regards to decreasing memory consumption. In doing so, I took out all the code pertaining to condvar, handle, and queue from inside MCE/Shared/Server.pm and re-factored the bits into MCE/Shared/Condvar.pm, Handle.pm, and Queue.pm respectively. Furthermore, I enabled AUTOLOAD inside MCE/Shared.pm and moved all the sugar-type functions inside it. For testing, the following script loads the relevant modules and constructs a shared queue.
Results reported by top (resident memory size):
Q. Why is memory footprint important for MCE::Hobo? A. I have an add-on module using MCE::Hobo to send-recv data, similar to Parallel::Fork::BossWorkerAsync. Someone has requested this for a long time and decided okay will do it. But first, wanted to reduce memory consumption. MCE::Shared 1.826 will be released sometimes this week. Regards, Mario
In Section
Cool Uses for Perl
|
|