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:
Eric Wong 2008-09-23 20:48:51 +02:00 committed by Max Kellermann
parent cce2f93de7
commit cfc2dd3e94
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}