mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 19:50:30 +01:00
esp8266/_boot.py: Set GC alloc threshold to half of heap size.
Should keep good chunk of heap unfragmented, if a user application allows that at all.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import gc
|
||||
gc.threshold((gc.mem_free() + gc.mem_alloc()) // 2)
|
||||
import uos
|
||||
from flashbdev import bdev
|
||||
|
||||
|
||||
Reference in New Issue
Block a user