preload all worker modules into shared memory

This commit is contained in:
Oliver Gorwits
2014-08-10 13:18:59 +01:00
parent 9ceb43c0f7
commit 1fd473fd50

View File

@@ -28,6 +28,10 @@ use App::Netdisco::Util::Daemon;
use NetAddr::IP::Lite ':lower'; # to quench AF_INET6 symbol errors use NetAddr::IP::Lite ':lower'; # to quench AF_INET6 symbol errors
use Role::Tiny::With; use Role::Tiny::With;
# preload all worker modules into shared memory
use Module::Find ();
Module::Find::useall 'App::Netdisco::Daemon::Worker';
use MCE::Signal '-setpgrp'; use MCE::Signal '-setpgrp';
use MCE::Flow Sereal => 1; use MCE::Flow Sereal => 1;
use MCE::Queue; use MCE::Queue;