Remove webrepl from boot.py to save memory?

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
NTL2009
Posts: 20
Joined: Wed Oct 26, 2016 10:07 pm

Remove webrepl from boot.py to save memory?

Post by NTL2009 » Thu Oct 27, 2016 9:29 pm

I expect to be doing all my commands while connected via USB. Would there be any advantage (memory, performance?) to commenting out the lines "import webrepl" and "webrepl.start()" from boot.py? Like this:

# This file is executed on every boot (including wake-boot from deepsleep)
#import esp
#esp.osdebug(None)
import gc
# import webrepl
# webrepl.start()
gc.collect()

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: Remove webrepl from boot.py to save memory?

Post by pfalcon » Thu Oct 27, 2016 9:40 pm

Yes. That's btw the reason why webrepl is not enabled by default it "daily development" builds. Note that starting with next version (1.8.6), webrepl won't be started automatically in release builds too: http://forum.micropython.org/viewtopic.php?f=16&t=2492
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

Post Reply