Skip to content

Commit 4bba458

Browse files
committed
benchamrks
1 parent 85e7d3c commit 4bba458

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

git-function-history-lib/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Show the git history of a function or method.
77
Use the latest (beta) version by putting `"git_function_history" = { git = 'https://github.com/mendelsshop/git_function_history' }` in your cargo.toml under `[dependencies]` section.
88
Use the latest [crates.io](https://crates.io/crates/git_function_history) (also beta) by putting `git_function_history = "0.5.4"` in your cargo.toml under `[dependencies]` section.
99

10-
## Todo/ideas
11-
12-
- [ ] for version 7.0: use [rust analyzer parser](https://crates.io/crates/ra_ap_syntax) or the like to parse the code and find the function/method definition etc. instead of using regexes.
10+
Parser vs Regex approach benchmarks:
11+
| approach| expensive| relative| date-range |
12+
| --- | --- | --- | --- |
13+
|regex| 313 second(s) | 22 second(s) | 8 second(s) |
14+
|parser| 22 second(s) | 21 second(s)| 1 second(s) |

0 commit comments

Comments
 (0)