diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-07-23 18:17:08 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-23 18:17:08 -0700 |
| commit | 08def6b51ecb9853ccbe21fc6feecbb18cc3e387 (patch) | |
| tree | f40d5269a71138367f49f70fcdf39adeccb204a9 /py/obj.h | |
| parent | 85a5276f36fb8b1be981d3155e4f0ef0c4cf72df (diff) | |
| parent | be1d882a8b5d2878c9b4402ae641abf9a88cd682 (diff) | |
Merge pull request #1052 from dhalbert/speed-up-dict-long-lived
Prevent repetitive recursive scanning of dicts when making them long-…
Diffstat (limited to 'py/obj.h')
| -rw-r--r-- | py/obj.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -359,7 +359,9 @@ typedef struct _mp_map_t { size_t all_keys_are_qstrs : 1; size_t is_fixed : 1; // a fixed array that can't be modified; must also be ordered size_t is_ordered : 1; // an ordered array - size_t used : (8 * sizeof(size_t) - 3); + size_t scanning : 1; // true if we're in the middle of scanning linked dictionaries, + // e.g., make_dict_long_lived() + size_t used : (8 * sizeof(size_t) - 4); size_t alloc; mp_map_elem_t *table; } mp_map_t; |
