in reply to Slow startup on raspberry pi
Watched the same on Raspberry. A
# mojo version
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Slow startup on raspberry pi
by LanX (Saint) on Jan 16, 2015 at 12:18 UTC | |
by hardburn (Abbot) on Jan 16, 2015 at 20:35 UTC | |
by LanX (Saint) on Jan 16, 2015 at 20:40 UTC | |
by hardburn (Abbot) on Jan 16, 2015 at 21:26 UTC | |
by salva (Canon) on Jan 17, 2015 at 21:45 UTC | |
by wollmers (Scribe) on Jan 17, 2015 at 13:44 UTC | |
by LanX (Saint) on Jan 17, 2015 at 14:32 UTC |