4 ms·
I don’t agree. As a proof of concept I wrote a Fish native version of the function that figures out what local version of a tool to use I do actually use it to
by eproxus 4y ago
I don’t agree.
As a proof of concept I wrote a Fish native version of the function that figures out what local version of a tool to use I do actually use it to show the currently selected version in my shell prompt. The asdf version was unusable in a shell prompt.
It goes through the parent directory structure up until the top level root directory and finds the first .tool-versions file and parses out the version of a specific tool.
The asdf native shim takes ~100 ms in Bash (no idea if it can be optimized, but I assume so). My Fish version takes ~1 ms.
- happens 4y agoI'm not familiar with the performance characteristics of fish, so I can't really speak to that. I only remember that the developers of asdf themselves had problems with resolver/shim performance and even temporarily implemented only that specific part as a go executable, and projects like asdf-direnv also try to work around the problem.