diff options
author | 2021-11-11 15:33:39 -0800 | |
---|---|---|
committer | 2021-11-11 15:33:39 -0800 | |
commit | fe1a6cee10993e0438ec4823c9291e9af5f48bde (patch) | |
tree | f5ae37a1b703feba8d044713ed44a9a6bdef58d5 /integration/snippets/spread_with_key.tsx | |
parent | 6a66d9f7fb8bf26665c2a85f7e5adc9f5a08fabb (diff) | |
download | bun-fe1a6cee10993e0438ec4823c9291e9af5f48bde.tar.gz bun-fe1a6cee10993e0438ec4823c9291e9af5f48bde.tar.zst bun-fe1a6cee10993e0438ec4823c9291e9af5f48bde.zip |
[JSON Parser] Improve perf by 2%-4%
We warn when a JSON object has duplicate keys, but detecting duplicate keys has a cost. Now the hash table used for deduping keys is pooled instead of reallocated each time
This also removes a call to potentially resize object properties and arrays to their smallest possible size. Resizing an array can be expensive
Diffstat (limited to 'integration/snippets/spread_with_key.tsx')
0 files changed, 0 insertions, 0 deletions