Closed sckott closed 9 years ago
OK, I'll have a look. I think fetching data takes most of the time. Perhaps it is enough to come up with a service plus from
until
combinations that return a reasonable-sized results.
thanks
How did you time the tests? Is there some convenient way?
I use this https://github.com/sckott/sacbox/blob/master/R/timetests.r for any set of test files. Runs tests, times elapsed time for all tests, makes data.frame, sorts it
great! thx
I think count_identifiers
could use some reducing diet too. See also #25 .
Now test times are at:
.id user.self sys.self elapsed user.child sys.child
10 test-providers.R 0.024 0.002 0.044 0.000 0.000
8 test-list_records.R 0.086 0.004 0.623 0.000 0.000
3 test-get_records.R 0.091 0.003 0.830 0.000 0.000
7 test-list_metadataformats.R 0.100 0.004 0.962 0.000 0.000
5 test-id.R 0.095 0.006 2.573 0.000 0.000
1 test-count_identifiers.R 0.272 0.027 3.901 0.000 0.000
2 test-dumpers.R 0.636 0.030 4.715 8.632 0.129
4 test-handle_errors.R 0.174 0.013 6.706 0.000 0.000
6 test-list_identifiers.R 1.320 0.036 6.744 0.000 0.000
9 test-list_sets.R 1.697 0.036 7.978 0.000 0.000
I think we can probably close now
I think so too.
Looked at times of tests, seems there's two we need to speed up. I'll work on
list_identifiers
. @mbojan - can you make the dumpers tests faster?