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:
Paul Sokolovsky 2016-07-23 00:20:49 +03:00
parent 77f0cd8027
commit c141584e1e

View File

@ -1,4 +1,5 @@
import gc
gc.threshold((gc.mem_free() + gc.mem_alloc()) // 2)
import uos
from flashbdev import bdev