aboutsummaryrefslogtreecommitdiff
path: root/crates/mbe/src/benchmark.rs
Commit message (Collapse)AuthorAgeFilesLines
* Make `ast_to_token_tree` infallibleJonas Schievink2021-04-041-1/+1
| | | | It could never return `None`, so reflect that in the return type
* don't clone types that are copy (clippy::clone_on_copy)Matthias Krüger2021-03-171-3/+2
|
* avoid converting types into themselves via .into() (clippy::useless-conversion)Matthias Krüger2021-03-171-10/+8
| | | | example: let x: String = String::from("hello world").into();
* Merge #7513bors[bot]2021-03-021-13/+27
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7513: NFA parser for mbe matcher r=matklad a=edwin0cheng Almost straight porting from rustc one, but a little bit slow :( ``` rust-analyzer analysis-stats -q . ``` From: ```log Database loaded: 636.11ms, 277minstr crates: 36, mods: 594, decls: 11527, fns: 9017 Item Collection: 10.99s, 60ginstr exprs: 249618, ??ty: 2699 (1%), ?ty: 2101 (0%), !ty: 932 Inference: 28.94s, 123ginstr Total: 39.93s, 184ginstr ``` To: ```log Database loaded: 630.90ms, 277minstr crates: 36, mods: 594, decls: 11528, fns: 9018 Item Collection: 13.70s, 77ginstr exprs: 249482, ??ty: 2699 (1%), ?ty: 2101 (0%), !ty: 932 Inference: 30.27s, 133ginstr Total: 43.97s, 211ginstr ``` Fixes #4777 Co-authored-by: Edwin Cheng <[email protected]>
| * NFA parser for mbe matcherEdwin Cheng2021-02-281-13/+27
| |
* | Remove redundant semicolonDániel Buga2021-03-011-1/+1
|/
* Add benchmark test for mbeEdwin Cheng2021-02-241-0/+211