Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Slow startup on raspberry piby wollmers (Scribe) |
on Jan 16, 2015 at 12:12 UTC ( [id://1113498]=note: print w/replies, xml ) | Need Help?? |
Watched the same on Raspberry. A
took 7 seconds. Then I profiled it with Devel::NYTProf with the result, that attribute creation (does string eval) of Mojo::Base was called around 160 times. In combination with the slow I/O to SD-card it results in 10 times slower than my Mac Air (Core i5, SSD), which needs around 0.7 seconds for the same. Profile your script, and try to tune. Maybe avoid bloated modules (e.g. List::Utils for min()). Or just use better hardware.
In Section
Seekers of Perl Wisdom
|
|