-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use new Roast library for custom AST serialization (#1001)
And the `jsoniter` library for any JSON handling. This is quite a big win for linting performance: ``` ➜ hyperfine --warmup 2 'regal_main lint bundle' 'regal_jsoniter lint bundle' Benchmark 1: regal_main lint bundle Time (mean ± σ): 2.707 s ± 0.035 s [User: 19.171 s, System: 0.636 s] Range (min … max): 2.662 s … 2.785 s 10 runs Benchmark 2: regal_jsoniter lint bundle Time (mean ± σ): 2.185 s ± 0.019 s [User: 14.932 s, System: 0.466 s] Range (min … max): 2.147 s … 2.207 s 10 runs Summary regal_jsoniter lint bundle ran 1.24 ± 0.02 times faster than regal_main lint bundle ``` But importantly, it doesn't make the AST harder to read or work with — quite the opposite actually! See the Roast README for all the details: https://github.com/anderseknert/roast Signed-off-by: Anders Eknert <[email protected]>
- Loading branch information
1 parent
4bbeb59
commit f28ac7d
Showing
62 changed files
with
380 additions
and
346 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
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
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
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
File renamed without changes.
Oops, something went wrong.