Playlist loader: Allocate larger properties dictionary

This commit is contained in:
Christopher Snowhill 2022-01-11 19:35:59 -08:00
parent ed882e25cb
commit 8a91bc1d09

View file

@ -618,7 +618,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
progress += progressstep; progress += progressstep;
[weakLock unlock]; [weakLock unlock];
NSMutableDictionary *entryInfo = [NSMutableDictionary dictionaryWithCapacity:20]; NSMutableDictionary *entryInfo = [NSMutableDictionary dictionaryWithCapacity:32];
NSDictionary *entryProperties = [AudioPropertiesReader propertiesForURL:weakPe.URL]; NSDictionary *entryProperties = [AudioPropertiesReader propertiesForURL:weakPe.URL];
if (entryProperties == nil) if (entryProperties == nil)
@ -700,7 +700,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
{ {
PlaylistEntry *pe = [entries objectAtIndex:idx]; PlaylistEntry *pe = [entries objectAtIndex:idx];
NSMutableDictionary *entryInfo = [NSMutableDictionary dictionaryWithCapacity:20]; NSMutableDictionary *entryInfo = [NSMutableDictionary dictionaryWithCapacity:32];
NSDictionary *entryProperties = [AudioPropertiesReader propertiesForURL:pe.URL]; NSDictionary *entryProperties = [AudioPropertiesReader propertiesForURL:pe.URL];
if (entryProperties == nil) if (entryProperties == nil)