|Syntactic Confectionery Delight|
Re^3: Slow startup on raspberry piby vkon (Curate)
|on Jan 17, 2015 at 12:59 UTC||Need Help??|
there is special consideration on 'use threads;' - start these as early as possible, and yet http://perlmonks.org/?node_id=288022: they are not lightweight, (although some people argue and have different opinion)
All in all, is this 'use threads;' really a necessity in your script?
Starting several scripts in parallel could better do the job, IMO.
I do have a real advise on how to divide startup time of your use ...; lines by factor of 4,
Those 'use'-d modules are loaded on the fly by 'use' statement and their blabla.so.x object loaded.
I have tried this approach on windows only (on linux I only used standard perl and my own ordinary builds at /opt/...)
If startup time is still slow after that, then rip out the Autoloader, so this will avoid usage of a large amount of tiny files, instead most will be loaded quickly.
PS. in earlier days, when perl run just fine on 486, it was small and quick, and the problem of slow startup was not on the table.