diff options
| author | Damien George | 2015-07-20 11:03:13 +0000 |
|---|---|---|
| committer | Damien George | 2015-07-20 11:03:13 +0000 |
| commit | c3bd9415cc8e6ba3619fe4b7a2bdac20260b0236 (patch) | |
| tree | f18830095cdda64cfdfc6e164ec88d3442e85c6c /bare-arm | |
| parent | 1e8ca3a3cf442733f9210be4d5f6a5b63135a16d (diff) | |
py: Make qstr hash size configurable, defaults to 2 bytes.
This patch makes configurable, via MICROPY_QSTR_BYTES_IN_HASH, the
number of bytes used for a qstr hash. It was originally fixed at 2
bytes, and now defaults to 2 bytes. Setting it to 1 byte will save
ROM and RAM at a small expense of hash collisions.
Diffstat (limited to 'bare-arm')
| -rw-r--r-- | bare-arm/mpconfigport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bare-arm/mpconfigport.h b/bare-arm/mpconfigport.h index cae27cfd9..b35f9ab46 100644 --- a/bare-arm/mpconfigport.h +++ b/bare-arm/mpconfigport.h @@ -2,6 +2,7 @@ // options to control how Micro Python is built +#define MICROPY_QSTR_BYTES_IN_HASH (1) #define MICROPY_ALLOC_PATH_MAX (512) #define MICROPY_EMIT_X64 (0) #define MICROPY_EMIT_THUMB (0) |
