2 ms·
I pulled these requires into the method bodies where they are used: - openssl - digest - resolv - rgl - net/ssh - (internal http client) - (internal pack
by jitl 9y ago
I pulled these requires into the method bodies where they are used:
- openssl
- digest
- resolv
- rgl
- net/ssh
- (internal http client)
- (internal package manager)
Doing this saved about 40% of our CLI boot time:
$ time /usr/local/bin/airlab > /dev/null
/usr/local/bin/airlab > /dev/null 0.27s user 0.15s system 79% cpu 0.521 total
$ git co jake--no-rubygems
$ time /usr/local/bin/airlab > /dev/null
/usr/local/bin/airlab > /dev/null 0.24s user 0.08s system 98% cpu 0.326 total