summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-24 23:45:37 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-24 23:45:37 +0000
commitad33e2465c243dd6c602a7b1e263df3cf2359230 (patch)
treeee4daff870dc1007aba4db2227f436b4ed9a6f65
parent31c1f1300e2f166061cb0a491fab30ac37018a94 (diff)
downloadmicropython-ad33e2465c243dd6c602a7b1e263df3cf2359230.tar.gz
micropython-ad33e2465c243dd6c602a7b1e263df3cf2359230.zip
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.
-rw-r--r--stmhal/mpconfigport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h
index ad3599ee83..2e5d50b2a6 100644
--- a/stmhal/mpconfigport.h
+++ b/stmhal/mpconfigport.h
@@ -42,7 +42,7 @@
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
#define MICROPY_OPT_COMPUTED_GOTO (1)
-#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (1)
+#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (0)
/* Enable FatFS LFNs
0: Disable LFN feature.
1: Enable LFN with static working buffer on the BSS. Always NOT reentrant.