diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-20 17:28:12 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-20 17:29:15 -0700 |
commit | 228736ffb9d88a2910d7ae7df71827d12d7bfeb5 (patch) | |
tree | 514d23dadb27cb3ded0bdd0d7a51890c063762d5 | |
parent | 66a934d068fb6e0aab2043d56a8857d57b6b7596 (diff) | |
download | mpd-228736ffb9d88a2910d7ae7df71827d12d7bfeb5.tar.gz mpd-228736ffb9d88a2910d7ae7df71827d12d7bfeb5.tar.xz mpd-228736ffb9d88a2910d7ae7df71827d12d7bfeb5.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).
Diffstat (limited to '')
-rw-r--r-- | src/song.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |