kopia lustrzana https://github.com/micropython/micropython
unix: Enable LOAD_ATTR fast path, and map lookup caching.
Enabled for all variants except minimal. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>pull/7811/head
rodzic
68219a295c
commit
60c6d5594f
|
@ -82,6 +82,12 @@
|
||||||
#ifndef MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE
|
#ifndef MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE
|
||||||
#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (1)
|
#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (1)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef MICROPY_OPT_LOAD_ATTR_FAST_PATH
|
||||||
|
#define MICROPY_OPT_LOAD_ATTR_FAST_PATH (1)
|
||||||
|
#endif
|
||||||
|
#ifndef MICROPY_OPT_MAP_LOOKUP_CACHE
|
||||||
|
#define MICROPY_OPT_MAP_LOOKUP_CACHE (1)
|
||||||
|
#endif
|
||||||
#define MICROPY_MODULE_WEAK_LINKS (1)
|
#define MICROPY_MODULE_WEAK_LINKS (1)
|
||||||
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
|
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
|
||||||
#define MICROPY_VFS_POSIX_FILE (1)
|
#define MICROPY_VFS_POSIX_FILE (1)
|
||||||
|
|
|
@ -56,6 +56,8 @@
|
||||||
#define MICROPY_STREAMS_NON_BLOCK (0)
|
#define MICROPY_STREAMS_NON_BLOCK (0)
|
||||||
#define MICROPY_OPT_COMPUTED_GOTO (0)
|
#define MICROPY_OPT_COMPUTED_GOTO (0)
|
||||||
#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (0)
|
#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (0)
|
||||||
|
#define MICROPY_OPT_LOAD_ATTR_FAST_PATH (0)
|
||||||
|
#define MICROPY_OPT_MAP_LOOKUP_CACHE (0)
|
||||||
#define MICROPY_CAN_OVERRIDE_BUILTINS (0)
|
#define MICROPY_CAN_OVERRIDE_BUILTINS (0)
|
||||||
#define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (0)
|
#define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (0)
|
||||||
#define MICROPY_CPYTHON_COMPAT (0)
|
#define MICROPY_CPYTHON_COMPAT (0)
|
||||||
|
|
Ładowanie…
Reference in New Issue