From fc86834e29ba0534c79f56c828d3f69b4da2eb1c Mon Sep 17 00:00:00 2001 From: Jo Liss Date: Fri, 27 Mar 2015 03:17:42 +0000 Subject: [PATCH] Add comment re nvm_ensure_version_installed performance --- nvm.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvm.sh b/nvm.sh index 05a0bd1..5ad3578 100755 --- a/nvm.sh +++ b/nvm.sh @@ -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