Skip to content

Commit 9ed31ac

Browse files
committed
top: Set MICROPY_QSTR_BYTES_IN_HASH=0 as default.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
1 parent e3d2ffe commit 9ed31ac

File tree

8 files changed

+2
-15
lines changed

8 files changed

+2
-15
lines changed

ports/cc3200/mpconfigport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
#else
6060
#define MICROPY_CPYTHON_COMPAT (0)
6161
#endif
62-
#define MICROPY_QSTR_BYTES_IN_HASH (1)
6362

6463
// fatfs configuration used in ffconf.h
6564
#define MICROPY_FATFS_ENABLE_LFN (2)

ports/nrf/mpconfigport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@
260260
#define MICROPY_PY_SYS (1)
261261
#define MICROPY_PY_SYS_PATH_ARGV_DEFAULTS (1)
262262
#define MICROPY_PY___FILE__ (1)
263-
#define MICROPY_QSTR_BYTES_IN_HASH (2)
264263
#endif
265264

266265
#ifndef MICROPY_PY_UBLUEPY

ports/pic16bit/mpconfigport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
// options to control how MicroPython is built
3030
#define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_B)
3131
#define MICROPY_ALLOC_PATH_MAX (64)
32-
#define MICROPY_QSTR_BYTES_IN_HASH (1)
3332
#define MICROPY_EMIT_X64 (0)
3433
#define MICROPY_EMIT_THUMB (0)
3534
#define MICROPY_EMIT_INLINE_THUMB (0)

ports/powerpc/mpconfigport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535

3636
// #define MICROPY_DEBUG_VERBOSE (1)
3737

38-
#define MICROPY_QSTR_BYTES_IN_HASH (1)
3938
#define MICROPY_QSTR_EXTRA_POOL mp_qstr_frozen_const_pool
4039
#define MICROPY_ALLOC_PATH_MAX (256)
4140
#define MICROPY_EMIT_X64 (0)

ports/rp2/mpconfigport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
// Memory allocation policies
6262
#define MICROPY_GC_STACK_ENTRY_TYPE uint16_t
6363
#define MICROPY_ALLOC_PATH_MAX (128)
64-
#define MICROPY_QSTR_BYTES_IN_HASH (1)
6564

6665
// MicroPython emitters
6766
#define MICROPY_PERSISTENT_CODE_LOAD (1)

ports/samd/mpconfigport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#define MICROPY_GC_STACK_ENTRY_TYPE uint16_t
3636
#define MICROPY_GC_ALLOC_THRESHOLD (0)
3737
#define MICROPY_ALLOC_PATH_MAX (256)
38-
#define MICROPY_QSTR_BYTES_IN_HASH (1)
3938

4039
// MicroPython emitters
4140
#define MICROPY_PERSISTENT_CODE_LOAD (1)

ports/unix/variants/minimal/mpconfigvariant.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,3 @@
6464
// Enable just the sys and os built-in modules.
6565
#define MICROPY_PY_SYS (1)
6666
#define MICROPY_PY_OS (1)
67-
68-
// The minimum sets this to 1 to save flash.
69-
#define MICROPY_QSTR_BYTES_IN_HASH (2)

py/mpconfig.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,9 @@
282282
#define MICROPY_QSTR_BYTES_IN_LEN (1)
283283
#endif
284284

285-
// Number of bytes used to store qstr hash
285+
// Number of bytes used to store qstr hash, disabled by default
286286
#ifndef MICROPY_QSTR_BYTES_IN_HASH
287-
#if MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_CORE_FEATURES
288-
#define MICROPY_QSTR_BYTES_IN_HASH (2)
289-
#else
290-
#define MICROPY_QSTR_BYTES_IN_HASH (1)
291-
#endif
287+
#define MICROPY_QSTR_BYTES_IN_HASH (0)
292288
#endif
293289

294290
// Avoid using C stack when making Python function calls. C stack still

0 commit comments

Comments
 (0)