-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(obj): Store properties and methods in a slice rather than a hashmap
closes #90 We never needed to known the property name at runtime, this is an artifact of the 'Crafting Interpreters' heritage. This results in a performance boost of about 40% on some benches: Before: → hyperfine --warmup 10 'buzz tests/bench/001-btree.buzz 15 Benchmark 1: buzz tests/bench/001-btree.buzz 15 Time (mean ± σ): 1.221 s ± 0.022 s [User: 1.028 s, System: 0.174 s] Range (min … max): 1.195 s … 1.271 s 10 runs After: → hyperfine --warmup 10 'buzz tests/bench/001-btree.buzz 15 Benchmark 1: buzz tests/bench/001-btree.buzz 15 Time (mean ± σ): 795.5 ms ± 7.7 ms [User: 725.1 ms, System: 62.9 ms] Range (min … max): 785.3 ms … 811.7 ms 10 runs
- Loading branch information
Showing
23 changed files
with
2,079 additions
and
1,339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.