This commit is contained in:
Adam Hathcock
2026-02-11 14:02:27 +00:00
parent 3689b893db
commit 8aa93f4e34

View File

@@ -68,7 +68,6 @@ public class SevenZipBenchmarks : ArchiveBenchmarkBase
}
}
[Benchmark(Description = "7Zip LZMA2 Reader: Extract all entries")]
public void SevenZipLzma2Extract_Reader()
{
@@ -88,7 +87,7 @@ public class SevenZipBenchmarks : ArchiveBenchmarkBase
using var stream = new MemoryStream(_lzma2Bytes);
await using var archive = SevenZipArchive.OpenAsyncArchive(stream);
await using var reader = await archive.ExtractAllEntriesAsync();
while(await reader.MoveToNextEntryAsync().ConfigureAwait(false))
while (await reader.MoveToNextEntryAsync().ConfigureAwait(false))
{
await using var entryStream = await reader.OpenEntryStreamAsync().ConfigureAwait(false);
await entryStream.CopyToAsync(Stream.Null).ConfigureAwait(false);