aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-23 20:48:51 +0200
committerMax Kellermann <max@duempel.org>2008-09-23 20:48:51 +0200
commitcfc2dd3e94e97e633a3004295d971813b1aa5273 (patch)
treedfd5ae11324a29aec049a8f434a25bb2c07f5bcc
parentcce2f93de778d1a1a7d07657af7f142d5852dfee (diff)
downloadmpd-cfc2dd3e94e97e633a3004295d971813b1aa5273.tar.gz
mpd-cfc2dd3e94e97e633a3004295d971813b1aa5273.tar.xz
mpd-cfc2dd3e94e97e633a3004295d971813b1aa5273.zip
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).
-rw-r--r--src/song_save.c3
1 files changed, 2 insertions, 1 deletions
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);
}