micro-wakatime
micro-wakatime copied to clipboard
checking for cli updates slows down micro startup
the checkCli()
call in the init()
function takes about two seconds on my machine:
2021/03/18 12:46:31 Micro started
2021/03/18 12:46:31 initializing WakaTime v1.0.3
2021/03/18 12:46:31 Current wakatime-cli version is 13.0.7
2021/03/18 12:46:31 Checking for updates to wakatime-cli...
2021/03/18 12:46:33 wakatime-cli is up to date
2021/03/18 12:46:33 WakaTime initialized
This is reasonable, my internet connection is not one of the best. Still, since in these two seconds I can't use micro (and I tend to open / close micro a lot) I was wondering if there was some way to make micro instantly usable, for instance by doing the update-checking part concurrently (at the risk of losing a few keystrokes if you start typing with an outdated wakatime cli)
micro version:
Version: 2.0.9-dev.52
Commit hash: 6f949fe9
Compiled on March 18, 2021