thanks for the awesome plugin, it helped me a lot to understand the asdf & direnv installation process. Unfortunately, I have found out that the performance was/is not very satisfying when I checked zinit times. The plugin takes ~70ms to load and is the slowest in the list by a fair margin, even slower than other bigger contenders.
(not all entries are visible, left some for comparison)
❯ zini times
Plugin loading times:
1 ms - zdharma-continuum/zinit-annex-as-monitor
13 ms - romkatv/powerlevel10k
11 ms - Aloxaf/fzf-tab
3 ms - zimfw/utility
3 ms - BurntSushi/ripgrep (sbin command)
39 ms - zdharma-continuum/fast-syntax-highlighting
16 ms - zsh-users/zsh-autosuggestions
--> 73 ms - redxtech/zsh-asdf-direnv <--
2 ms - jesseduffield/lazygit (sbin command)
I took that as a personal challenge to see if I can improve the situation. After some tinkering, I came up with a solution that does not require any extra plugin, just using plain zinit. As this is a completely different approach than yours I still decided to share it here.
Following code plugin setup is the result, it offers less comfort than your approach, but the loading times are better by a manifold. I assume the "generate once & only source the generated file" is the big performance winner compared to the used "eval" approach.
Hey,
thanks for the awesome plugin, it helped me a lot to understand the asdf & direnv installation process. Unfortunately, I have found out that the performance was/is not very satisfying when I checked
zinit times
. The plugin takes ~70ms to load and is the slowest in the list by a fair margin, even slower than other bigger contenders.I took that as a personal challenge to see if I can improve the situation. After some tinkering, I came up with a solution that does not require any extra plugin, just using plain zinit. As this is a completely different approach than yours I still decided to share it here.
Following code plugin setup is the result, it offers less comfort than your approach, but the loading times are better by a manifold. I assume the "generate once & only source the generated file" is the big performance winner compared to the used "eval" approach.
Cheers!