summaryrefslogtreecommitdiffstatshomepage
path: root/unix
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-11-05 00:27:15 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-11-05 00:30:21 +0200
commit346aacf27f9bdfe8416efc30e2611f53dfc0cf5c (patch)
tree86445823ec1256bb601302ac7ddbc693fa5719ff /unix
parentff8d0e071c4281e7593b4798e92af56bb80f5471 (diff)
downloadmicropython-346aacf27f9bdfe8416efc30e2611f53dfc0cf5c.tar.gz
micropython-346aacf27f9bdfe8416efc30e2611f53dfc0cf5c.zip
unix: fast: Set initial module dict size big to have high pystone score.
For this, introduce MICROPY_MODULE_DICT_SIZE config setting.
Diffstat (limited to 'unix')
-rw-r--r--unix/mpconfigport_fast.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/mpconfigport_fast.h b/unix/mpconfigport_fast.h
index 98ec3dfa28..2dd55e42a5 100644
--- a/unix/mpconfigport_fast.h
+++ b/unix/mpconfigport_fast.h
@@ -30,3 +30,6 @@
#include <mpconfigport.h>
#define MICROPY_PY___FILE__ (0)
+// 91 is a magic number proposed by @dpgeorge, which make pystone run ~ at tie
+// with CPython 3.4.
+#define MICROPY_MODULE_DICT_SIZE (91)