Scott encoding alternative for dict functions #109
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here's some benchmarks so far
Scott
│ PASS [mem: 37338, cpu: 10429873] add_1
│ PASS [mem: 66298, cpu: 18740888] add_2
│ PASS [mem: 69931, cpu: 19660091] add_3
│ PASS [mem: 4734, cpu: 1887659] add_4
│ PASS [mem: 9137, cpu: 2772374] add_5
Option
│ PASS [mem: 41070, cpu: 11595603] add_1
│ PASS [mem: 69630, cpu: 19842618] add_2
│ PASS [mem: 82835, cpu: 24136523] add_3
│ PASS [mem: 4734, cpu: 1887659] add_4
│ PASS [mem: 9737, cpu: 2868374] add_5
Scott
│ PASS [mem: 45554, cpu: 13015185] merge_1
│ PASS [mem: 185897, cpu: 55227410] merge_2
│ PASS [mem: 73308, cpu: 20542533] merge_3
│ PASS [mem: 47482, cpu: 13347917] merge_4
│ PASS [mem: 7366, cpu: 2436653] merge_5
Option
│ PASS [mem: 48686, cpu: 14084915] merge_1
│ PASS [mem: 185497, cpu: 55163410] merge_2
│ PASS [mem: 76240, cpu: 21580263] merge_3
│ PASS [mem: 50614, cpu: 14417647] merge_4
│ PASS [mem: 8266, cpu: 2580653] merge_5