Skip expensive merge for artist additon
This commit is contained in:
parent
639e464ff5
commit
0566c3fa67
@ -812,8 +812,8 @@ impl<LIB, DB> MusicHoard<LIB, DB> {
|
||||
let artist_id: ArtistId = artist_id.into();
|
||||
|
||||
if self.get_artist(&artist_id).is_none() {
|
||||
let new_artist = vec![Artist::new(artist_id)];
|
||||
self.merge_with_secondary(new_artist);
|
||||
self.collection.push(Artist::new(artist_id));
|
||||
Self::sort_artists(&mut self.collection);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user