-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
speed up requests #133
Comments
@njahn82 with caching now implemented, we're back to manageable runtimes: bench::mark(metacheck = metacheck::render_email(sample(metacheck:::dois_many(), 10)))
#> Warning: Some expressions had a GC in every iteration; so filtering is disabled.
#> # A tibble: 1 x 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
#> 1 metacheck 23.8s 23.8s 0.0419 68.3MB 0.545 Created on 2021-03-08 by the reprex package (v1.0.0) This scales up to 40mins for 1000 DOIs. This is still not great. Next steps would be:
|
Thanks. Do you have an example, how |
Moving discussion to #190. |
doi.org calls are now also cached on disc, should speed up by ~20%. |
the requests are too damn slow, at least an order of magnitude slower than necessary as per the API I think.
Gotta do some profiling to figure out what's going on here.
The text was updated successfully, but these errors were encountered: