8000 stmhal: Disable MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE. · garyaj/micropython@ad33e24 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad33e24

Browse files
committed
stmhal: Disable MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE.
It uses RAM and on pyboard we are generally tight on RAM, so disable this optimisation for general builds. If users need the speed then they can build their own version. Maybe in the future we can have different versions of pyboard firmware built with different tradeoffs.
1 parent 31c1f13 commit ad33e24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stmhal/mpconfigport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
4343
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
4444
#define MICROPY_OPT_COMPUTED_GOTO (1)
45-
#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (1)
45+
#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (0)
4646
/* Enable FatFS LFNs
4747
0: Disable LFN feature.
4848
1: Enable LFN with static working buffer on the BSS. Always NOT reentrant.

0 commit comments

Comments
 (0)
0