From cfc2dd3e94e97e633a3004295d971813b1aa5273 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 23 Sep 2008 20:48:51 +0200 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_save.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/song_save.c b/src/song_save.c index 0cff6ef4f..27cfcd8e6 100644 --- a/src/song_save.c +++ b/src/song_save.c @@ -150,5 +150,6 @@ void readSongInfoIntoList(FILE *fp, struct songvec *sv, if (song) insertSongIntoList(sv, song); - songvec_prune(sv); + if (isUpdatingDB()) /* only needed until we get rid of forked update */ + songvec_prune(sv); } -- cgit v1.2.3