-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addressing the comment in PR #389, this PR re-uses the `AstTypeMap` for `LocationMap` which removes a dependency to `HashMap` as `AstTypeMap` uses `IndexMap`.
- Loading branch information
Showing
6 changed files
with
11 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
use crate::location::{BytePosition, Location}; | ||
use std::collections::HashMap; | ||
use partiql_ast::ast::AstTypeMap; | ||
|
||
/// Map of `T` to a [`Location<BytePosition>>`] | ||
pub type LocationMap<T> = HashMap<T, Location<BytePosition>>; | ||
pub type LocationMap = AstTypeMap<Location<BytePosition>>; |
004d2c0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PartiQL (rust) Benchmark
parse-1
6627
ns/iter (± 161
)6933
ns/iter (± 847
)0.96
parse-15
65440
ns/iter (± 867
)65659
ns/iter (± 5519
)1.00
parse-30
129684
ns/iter (± 1883
)135387
ns/iter (± 8910
)0.96
compile-1
5852
ns/iter (± 101
)6051
ns/iter (± 361
)0.97
compile-15
41875
ns/iter (± 588
)44369
ns/iter (± 5790
)0.94
compile-30
85142
ns/iter (± 1376
)95681
ns/iter (± 21741
)0.89
plan-1
23148
ns/iter (± 404
)26157
ns/iter (± 2358
)0.88
plan-15
427549
ns/iter (± 5974
)502372
ns/iter (± 30894
)0.85
plan-30
873706
ns/iter (± 11191
)1001031
ns/iter (± 68498
)0.87
eval-1
28031260
ns/iter (± 535227
)27122381
ns/iter (± 1817512
)1.03
eval-15
143519947
ns/iter (± 1527247
)142875254
ns/iter (± 5879075
)1.00
eval-30
269445526
ns/iter (± 2782126
)270865397
ns/iter (± 19224673
)0.99
join
17721
ns/iter (± 204
)17216
ns/iter (± 1123
)1.03
simple
8129
ns/iter (± 68
)8165
ns/iter (± 523
)1.00
simple-no
765
ns/iter (± 7
)737
ns/iter (± 57
)1.04
numbers
171
ns/iter (± 1
)160
ns/iter (± 10
)1.07
parse-simple
883
ns/iter (± 4
)827
ns/iter (± 55
)1.07
parse-ion
3202
ns/iter (± 35
)3026
ns/iter (± 264
)1.06
parse-group
10143
ns/iter (± 71
)10373
ns/iter (± 1067
)0.98
parse-complex
26513
ns/iter (± 79
)27630
ns/iter (± 1303
)0.96
parse-complex-fexpr
41816
ns/iter (± 150
)45491
ns/iter (± 3352
)0.92
This comment was automatically generated by workflow using github-action-benchmark.