diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-11-05 00:27:15 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-11-05 00:30:21 +0200 |
commit | 346aacf27f9bdfe8416efc30e2611f53dfc0cf5c (patch) | |
tree | 86445823ec1256bb601302ac7ddbc693fa5719ff /py/mpconfig.h | |
parent | ff8d0e071c4281e7593b4798e92af56bb80f5471 (diff) |
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 'py/mpconfig.h')
-rw-r--r-- | py/mpconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 6f92f3d88..8ef3e62fe 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -100,6 +100,11 @@ #define MICROPY_ALLOC_PATH_MAX (512) #endif +// Initial size of module dict +#ifndef MICROPY_MODULE_DICT_SIZE +#define MICROPY_MODULE_DICT_SIZE (1) +#endif + /*****************************************************************************/ /* Micro Python emitters */ |