Skip to content

Commit 9355cca

Browse files
committed
esp8266: Set DEFPSIZE=1024, MINCACHE=3 for "btree" module.
Defaults of 4096 and 5 respectively are too high to esp8266, causing out of memory with a database beyond couple of pages.
1 parent e41bc3f commit 9355cca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ports/esp8266/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ MICROPY_PY_USSL = 1
77
MICROPY_SSL_AXTLS = 1
88
MICROPY_FATFS = 1
99
MICROPY_PY_BTREE = 1
10+
BTREE_DEFS_EXTRA = -DDEFPSIZE=1024 -DMINCACHE=3
1011

1112
FROZEN_DIR ?= scripts
1213
FROZEN_MPY_DIR ?= modules

py/py.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ endif
7474

7575
ifeq ($(MICROPY_PY_BTREE),1)
7676
BTREE_DIR = lib/berkeley-db-1.xx
77-
BTREE_DEFS = -D__DBINTERFACE_PRIVATE=1 -Dmpool_error=printf -Dabort=abort_ -Dvirt_fd_t=mp_obj_t "-DVIRT_FD_T_HEADER=<py/obj.h>"
77+
BTREE_DEFS = -D__DBINTERFACE_PRIVATE=1 -Dmpool_error=printf -Dabort=abort_ -Dvirt_fd_t=mp_obj_t "-DVIRT_FD_T_HEADER=<py/obj.h>" $(BTREE_DEFS_EXTRA)
7878
INC += -I$(TOP)/$(BTREE_DIR)/PORT/include
7979
SRC_MOD += extmod/modbtree.c
8080
SRC_MOD += $(addprefix $(BTREE_DIR)/,\

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy