berry icon indicating copy to clipboard operation
berry copied to clipboard

Add ability to customize max bytes() size

Open s-hadinger opened this issue 3 years ago • 0 comments

Previously the max size for bytes() object was 32KB. For ESP32 this is reasonable, but too small when attached PSRAM of 4/8 MB. It is now possible to change the compile time default BE_BYTES_MAX_SIZE and to dynamically change this size with vm->bytesmaxsize. This makes it possible to dynamically detect the presence of PSRAM and adjust max size accordingly.

s-hadinger avatar Oct 10 '22 06:10 s-hadinger