Add comment re nvm_ensure_version_installed performance

master
Jo Liss 2015-03-27 03:17:42 +00:00
parent 609d9ee4ea
commit fc86834e29
1 changed files with 2 additions and 0 deletions

2
nvm.sh
View File

@ -1347,6 +1347,8 @@ nvm() {
return 8
fi
# This nvm_ensure_version_installed call can be a performance bottleneck
# on shell startup. Perhaps we can optimize it away or make it faster.
nvm_ensure_version_installed "$PROVIDED_VERSION"
EXIT_CODE=$?
if [ "$EXIT_CODE" != "0" ]; then