-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve ada_url_parse performance (fix #73)
- Loading branch information
1 parent
57679e6
commit b100c28
Showing
6 changed files
with
25 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: adaR | ||
Title: A Fast 'WHATWG' Compliant URL Parser | ||
Version: 0.3.3 | ||
Version: 0.3.3.9999 | ||
Authors@R: | ||
c(person("David", "Schoch", , "[email protected]", role = c("aut", "cre"), | ||
comment = c(ORCID = "0000-0003-2952-4812")), | ||
|
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,3 +1,7 @@ | ||
# adaR 0.3.3.9999 | ||
|
||
* improved ada_url_parse performance(#73) | ||
|
||
# adaR 0.3.3 | ||
|
||
* * bumped ada-url to 2.9.0 | ||
|
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 |
---|---|---|
|
@@ -94,7 +94,7 @@ practical circumstances. | |
bench::mark( | ||
ada = ada_url_parse("https://user_1:[email protected]:8080/dir/../api?q=1#frag", decode = FALSE), | ||
urltools = urltools::url_parse("https://user_1:[email protected]:8080/dir/../api?q=1#frag"), | ||
iterations = 1, check = FALSE | ||
check = FALSE | ||
) | ||
``` | ||
|
||
|
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 |
---|---|---|
|
@@ -116,13 +116,13 @@ practical circumstances. | |
bench::mark( | ||
ada = ada_url_parse("https://user_1:[email protected]:8080/dir/../api?q=1#frag", decode = FALSE), | ||
urltools = urltools::url_parse("https://user_1:[email protected]:8080/dir/../api?q=1#frag"), | ||
iterations = 1, check = FALSE | ||
check = FALSE | ||
) | ||
#> # A tibble: 2 × 6 | ||
#> expression min median `itr/sec` mem_alloc `gc/sec` | ||
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl> | ||
#> 1 ada 1.24ms 1.24ms 806. 0B 0 | ||
#> 2 urltools 812.7µs 812.7µs 1230. 0B 0 | ||
#> 1 ada 2.83µs 3.24µs 286849. 0B 28.7 | ||
#> 2 urltools 123.41µs 134.36µs 7277. 0B 36.8 | ||
``` | ||
|
||
For further benchmark results, see `benchmark.md` in `data_raw`. | ||
|
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