| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
websocket_helper.py is used by webrepl. If webrepl is enabled and
websocket_helper.py is not frozen bytecode it leads to heap
fragmentation.
|
|
|
|
|
|
| |
Previously, it was included only in release builds, but it's important
tool which should be always at the fingertips to be useful (and to
pump up its usage).
|
| |
|
|
|
|
|
| |
Following best-practice use of the const feature, to make it compatible
with Python.
|
| |
|
|
|
|
|
|
|
|
| |
As we're looking towards adding OTA support, calculation of a FlashROM
area which can be used for filesystem (etc.) may become complex, so
introduce C function for that. So far it just hardcodes current value,
0x90000. In the future the function may be extended (and renamed) to
return the size of area too.
|
|
|
|
|
| |
Concurrent WebREPL connections were never supported, now actually check
for this.
|
| |
|
|
|
|
|
| |
This allows 1-wire drivers (eg DS18X20) to perform in-place operations and
hence do less memory allocations.
|
|
|
|
|
|
|
|
|
|
| |
The OneWire class is now in its own onewire.py module, and the temperature
sensor class is in its own ds18x20.py module. The latter is renamed to
DS18X20 to reflect the fact that it will support both the "S" and "B"
variants of the device.
These files are moved to the modules/ subdirectory to take advantage of
frozen bytecode.
|
|
|
|
| |
To accommodate growing firmware.
|
| |
|
|
|
|
|
|
|
|
| |
The idea behind decrease is: bytecode and other static data is also kept on
heap, and can easily become half of heap, then setting threshold to half of
heap will have null effect - GC will happen on complete heap exhaustion like
before. But exactly in such config maintaining heap defragmented is very
important, so lower threshold to accommodate that.
|
|
|
|
|
| |
Should keep good chunk of heap unfragmented, if a user application allows
that at all.
|
| |
|
| |
|
|
|
|
| |
Leads to less fragmentation at teh time user code starts.
|
|
To start with, the critical scripts _boot.py and flashbdev.py are frozen
to improve performance and reduce RAM consumption.
Saves about 1000 bytes of heap RAM for a bare boot with filesystem.
|