Closed MilesCranmer closed 3 weeks ago
main | 2798749ef7cf18... | main/2798749ef7cf18... | |
---|---|---|---|
_stable/mode=disable | 0.139 ± 0.0014 ms | 0.721 ± 0.021 μs | 193 |
_stable/mode=error | 0.81 ± 0.017 ms | 0.665 ± 0.016 ms | 1.22 |
_stable/mode=warn | 0.804 ± 0.033 ms | 0.659 ± 0.02 ms | 1.22 |
time_to_load | 0.0674 ± 0.00069 s | 0.0682 ± 0.0001 s | 0.988 |
A plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR. Go to "Actions"->"Benchmark a pull request"->[the most recent run]->"Artifacts" (at the bottom).
Surprisingly it takes ~600 us to load from Preferences.jl. This seems to slow down package load times, even if
default_mode="disable"
. So this helps speed up Preferences.jl access via caching and an early exit if a"disable"
is found.Now it's under 1 us!