mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Add comment re nvm_ensure_version_installed performance
This commit is contained in:
		
							
								
								
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -1347,6 +1347,8 @@ nvm() { | |||||||
|         return 8 |         return 8 | ||||||
|       fi |       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" |       nvm_ensure_version_installed "$PROVIDED_VERSION" | ||||||
|       EXIT_CODE=$? |       EXIT_CODE=$? | ||||||
|       if [ "$EXIT_CODE" != "0" ]; then |       if [ "$EXIT_CODE" != "0" ]; then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user