Commit Graph
3 Commits
Author SHA1 Message Date
Hridhin Varkey Joseph f1f3d463ab [Perf] nvm use: skip re-resolving an exact, installed version
When `nvm use` is given an exact `vX.Y.Z` that is already installed,
and no alias with that exact name exists,
use it directly instead of re-resolving it through
`nvm_match_version` and `nvm_ensure_version_installed`,
both of which call `nvm_version`.

`nvm_auto` takes this path on every shell startup with an already-resolved version,
so this removes ~95ms from each new shell
(~330ms -> ~235ms in a clean environment on macOS/zsh).

Fixes #3930
2026-10-01 09:51:16 +05:30
Hridhin Varkey Joseph ed1b96f5db [readme] explain the misleading npm install error from npm run test/fast 2026-10-04 00:49:18 +05:30
Hridhin Varkey Joseph a27fb0bd78 [Tests] add unit tests for nvm_version_greater_than_or_equal_to 2026-10-03 11:51:31 +05:30