Browse Source

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
Jim Mussared 3 years ago
committed by Damien George
parent
commit
60c6d5594f
  1. 6
      ports/unix/mpconfigport.h
  2. 2
      ports/unix/variants/minimal/mpconfigvariant.h

6
ports/unix/mpconfigport.h

@ -82,6 +82,12 @@
#ifndef MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE
#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (1)
#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_CAN_OVERRIDE_BUILTINS (1)
#define MICROPY_VFS_POSIX_FILE (1)

2
ports/unix/variants/minimal/mpconfigvariant.h

@ -56,6 +56,8 @@
#define MICROPY_STREAMS_NON_BLOCK (0)
#define MICROPY_OPT_COMPUTED_GOTO (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_BUILTIN_METHOD_CHECK_SELF_ARG (0)
#define MICROPY_CPYTHON_COMPAT (0)

Loading…
Cancel
Save