summaryrefslogtreecommitdiff
path: root/ports/esp8266
diff options
context:
space:
mode:
authorJeff Epler <jepler@unpythonic.net>2018-03-26 07:31:13 -0500
committerJeff Epler <jepler@gmail.com>2018-03-27 21:56:30 -0500
commitabec199c19fdbd9705bd803cd9b8b2910c21bd3a (patch)
treedc8dce1974b3903951f906803e6d25c3942d5eef /ports/esp8266
parent1eba5804434a8acc182c23aadf5b5a5dcbe901fa (diff)
Enable high-quality float hash
This appears to have a relatively small impact on flash usage but fixes some pathological slow behavior putting floats in dicts or sets. Closes: #704
Diffstat (limited to 'ports/esp8266')
-rw-r--r--ports/esp8266/mpconfigport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/esp8266/mpconfigport.h b/ports/esp8266/mpconfigport.h
index 8caecf759..616e9875c 100644
--- a/ports/esp8266/mpconfigport.h
+++ b/ports/esp8266/mpconfigport.h
@@ -91,6 +91,7 @@
#define MICROPY_CPYTHON_COMPAT (0)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
+#define MICROPY_FLOAT_HIGH_QUALITY_HASH (1)
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_NORMAL)
#define MICROPY_WARNINGS (1)
#define MICROPY_PY_STR_BYTES_CMP_WARN (1)