You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if we can shave some time off of Cache.cache_root_dir_from_config. Only load yaml & erb if CacheRootDirectory is in the file contents? That would save another 20-30ms per client run if that string is not present.
Follow up #11178 (comment)
The below loading time is definitely unnecessary until an error occurs.
```console
% ruby -v
ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-darwin19]
% ruby -rbenchmark -e "Benchmark.bm { _1.report { require 'rainbow' }}"
user system total real
0.058754 0.049051 0.107805 ( 0.109943)
```
Can we do more? (see #10706). Here's a simple benchmark script against
rubocop-daemon
:and the output on my M1:
The text was updated successfully, but these errors were encountered: