richtamblyn / PGSparkLite-Pedal

Extension client to PGSparkLite software to support physical switch control and OLED display.
Apache License 2.0
15 stars 1 forks source link

Improve Boot Time #1

Open richtamblyn opened 3 years ago

richtamblyn commented 3 years ago

From plugging in power to establishing a connection to the Spark, it can take on average 1 minute, 9 seconds. The 'Booting' message is shown around 40 second mark but that still feels like an age. Can we make it better?

richtamblyn commented 3 years ago

If we didn't need the DHCP and Networking services for the web interface that would shave off at least 15 seconds.

richtamblyn commented 3 years ago

This looks very interesting... https://www.furkantokac.com/rpi3-fast-boot-less-than-2-seconds/

richtamblyn commented 3 years ago

Despite reducing the overall boot time with various OS tweaks (I can login to the console after 12 seconds), the 'Booting' message still only shows up around the 40 second mark and I'm not sure why yet.

richtamblyn commented 3 years ago

I'm going to investigate changing to the PyPy interpreter this weekend to see if that speeds up the initial start time.