From 228736ffb9d88a2910d7ae7df71827d12d7bfeb5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 20 Sep 2008 17:28:12 -0700 Subject: 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). --- src/song.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/song.c b/src/song.c index 0abf5c9b7..9be586281 100644 --- a/src/song.c +++ b/src/song.c @@ -234,7 +234,8 @@ void readSongInfoIntoList(FILE * fp, Directory * parentDir) if (song) insertSongIntoList(sv, song); - songvec_prune(sv); + if (isUpdatingDB()) /* only needed until we get rid of forked update */ + songvec_prune(sv); } int updateSongInfo(Song * song) -- cgit v1.2.3