Don't try to prune unless we're updating
Pruning is very expensive and we won't need it in the future anyways. This brings startup back to previous speeds (before songvec changes).
This commit is contained in:
		
				
					committed by
					
						
						Max Kellermann
					
				
			
			
				
	
			
			
			
						parent
						
							cce2f93de7
						
					
				
				
					commit
					cfc2dd3e94
				
			@@ -150,5 +150,6 @@ void readSongInfoIntoList(FILE *fp, struct songvec *sv,
 | 
			
		||||
	if (song)
 | 
			
		||||
		insertSongIntoList(sv, song);
 | 
			
		||||
 | 
			
		||||
	if (isUpdatingDB()) /* only needed until we get rid of forked update */
 | 
			
		||||
		songvec_prune(sv);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user