diff options
author | Rob Knegjens <rob@knegjens.net> | 2022-04-12 21:26:16 -0700 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-07-23 00:43:08 +1000 |
commit | 4a48531803843f53caf2b535da7ff3bb2a802106 (patch) | |
tree | ebe17f66c83b0cb52d544e741e3d18e822bffb46 /extmod/webrepl/websocket_helper.py | |
parent | bcc827d695e20b644ff4626bd529e3d8706716d7 (diff) | |
download | micropython-4a48531803843f53caf2b535da7ff3bb2a802106.tar.gz micropython-4a48531803843f53caf2b535da7ff3bb2a802106.zip |
py/gc: Reduce code size when MICROPY_GC_SPLIT_HEAP is disabled.
Use C macros to reduce the size of firmware images when the GC split-heap
feature is disabled.
The code size difference of this commit versus HEAD~2 (ie the commit prior
to MICROPY_GC_SPLIT_HEAP being introduced) when split-heap is disabled is:
bare-arm: +0 +0.000%
minimal x86: +0 +0.000%
unix x64: -16 -0.003%
unix nanbox: -20 -0.004%
stm32: -8 -0.002% PYBV10
cc3200: +0 +0.000%
esp8266: +8 +0.001% GENERIC
esp32: +0 +0.000% GENERIC
nrf: -20 -0.011% pca10040
rp2: +0 +0.000% PICO
samd: -4 -0.003% ADAFRUIT_ITSYBITSY_M4_EXPRESS
The code size difference of this commit versus HEAD~2 split-heap is enabled
with MICROPY_GC_MULTIHEAP=1 (but no extra code to add more heaps):
unix x64: +1032 +0.197% [incl +544(bss)]
esp32: +592 +0.039% GENERIC[incl +16(data) +264(bss)]
Diffstat (limited to 'extmod/webrepl/websocket_helper.py')
0 files changed, 0 insertions, 0 deletions