Skip to content

Commit

Permalink
Preallocating 4 cells makes sense
Browse files Browse the repository at this point in the history
  • Loading branch information
kinsi55 committed Jul 4, 2022
1 parent ddad46f commit 207a565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Util/SongDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static unsafe void ExtractZip(Stream zipStream, string basePath, CancellationTok

int steps;
var progress = 0;
var files = new Dictionary<string, (IntPtr ptr, UnmanagedMemoryStream stream)>();
var files = new Dictionary<string, (IntPtr ptr, UnmanagedMemoryStream stream)>(4);

try {
var longestFileNameLength = 0;
Expand Down

0 comments on commit 207a565

Please sign in to comment.