diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-03-12 19:20:36 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-03-12 19:21:30 +0100 |
commit | a09f11fb0db7f40015f85146691286e1ac735733 (patch) | |
tree | 2256aa30a419499b1945dc4a38d32eee2fc68369 | |
parent | 1b13e90161bdb1409b04a273a6b71f02fbb9d5f1 (diff) | |
download | otp-a09f11fb0db7f40015f85146691286e1ac735733.tar.gz otp-a09f11fb0db7f40015f85146691286e1ac735733.tar.bz2 otp-a09f11fb0db7f40015f85146691286e1ac735733.zip |
erts: Set Maps small limit to 32 items
Use small limit 3 in debug case
-rw-r--r-- | erts/emulator/beam/erl_map.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_map.h b/erts/emulator/beam/erl_map.h index c6d8b1966c..ff5e6edd1e 100644 --- a/erts/emulator/beam/erl_map.h +++ b/erts/emulator/beam/erl_map.h @@ -80,7 +80,11 @@ typedef struct flatmap_s { #define flatmap_get_keys(x) (((Eterm *)tuple_val(((flatmap_t *)(x))->keys)) + 1) #define flatmap_get_size(x) (((flatmap_t*)(x))->size) -#define MAP_SMALL_MAP_LIMIT (2) /*SVERK (32) */ +#ifdef DEBUG +#define MAP_SMALL_MAP_LIMIT (3) +#else +#define MAP_SMALL_MAP_LIMIT (32) +#endif #define MAP_HEADER _make_header(1,_TAG_HEADER_MAP) #define MAP_HEADER_SIZE (sizeof(flatmap_t) / sizeof(Eterm)) |