30 references to Optimal
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\ResourceCollectionUrlEndpoint.cs (1)
85using (var gzipStream = new GZipStream(gzipContent, CompressionLevel.Optimal, leaveOpen: true))
Microsoft.Build (1)
Logging\BinaryLogger\BinaryLogger.cs (1)
404stream = new GZipStream(stream, CompressionLevel.Optimal);
Microsoft.Build.Tasks.Core (1)
ZipDirectory.cs (1)
155level = System.IO.Compression.CompressionLevel.Optimal;
Microsoft.CodeAnalysis (3)
EmbeddedText.cs (3)
249using (var deflater = new CountingDeflateStream(builder, CompressionLevel.Optimal, leaveOpen: true)) 283using (var deflater = new CountingDeflateStream(builder, CompressionLevel.Optimal, leaveOpen: true)) 328using (var deflater = new CountingDeflateStream(builder, CompressionLevel.Optimal, leaveOpen: true))
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (1)
166using (var gzipStream = new GZipStream(stream, CompressionLevel.Optimal, leaveOpen: true))
Microsoft.DotNet.Build.Tasks.Installers (3)
src\CreateChangelogFile.cs (1)
40using GZipStream stream = new(File.Create(ChangelogOutputPath), CompressionLevel.Optimal);
src\RpmBuilder.cs (1)
371using (GZipStream gzipStream = new(compressedPayload, CompressionLevel.Optimal, leaveOpen: true))
src\RpmPackage.cs (1)
64using GZipStream gzipStream = new(stream, CompressionLevel.Optimal, leaveOpen: true);
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WritePackageUsageData.cs (1)
165.CreateEntry(relativePath, CompressionLevel.Optimal)
Microsoft.NET.HostModel (1)
Bundle\Bundler.cs (1)
114using (DeflateStream compressionStream = new DeflateStream(bundle, Enum.IsDefined(typeof(CompressionLevel), smallestSize) ? smallestSize : CompressionLevel.Optimal, leaveOpen: true))
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
GZipCompress.cs (1)
71using var stream = new GZipStream(fileStream, CompressionLevel.Optimal);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (1)
Compression\GZipCompress.cs (1)
59using var stream = new GZipStream(fileStream, CompressionLevel.Optimal);
NuGet.Packaging (5)
PackageCreation\Authoring\PackageBuilder.cs (5)
959var entry = CreateEntry(package, path, CompressionLevel.Optimal); 1144var entry = CreatePackageFileEntry(package, entryName, lastWriteTime, CompressionLevel.Optimal, warningMessage); 1187ZipArchiveEntry relsEntry = CreateEntry(package, "_rels/.rels", CompressionLevel.Optimal); 1214ZipArchiveEntry relsEntry = CreateEntry(package, "[Content_Types].xml", CompressionLevel.Optimal); 1256ZipArchiveEntry packageEntry = CreateEntry(package, psmdcpPath, CompressionLevel.Optimal);
sdk-tasks (2)
ZipFileCreateFromDirectory.cs (2)
63ZipFile.CreateFromDirectory(SourceDirectory, DestinationArchive, CompressionLevel.Optimal, IncludeBaseDirectory); 98zipFile.CreateEntryFromFile(file, relativePath, CompressionLevel.Optimal);
System.IO.Compression (6)
System\IO\Compression\DeflateZLib\DeflateStream.cs (1)
134CompressionLevel.Optimal => ZLibNative.CompressionLevel.DefaultCompression,
System\IO\Compression\ZipArchiveEntry.cs (4)
124_compressionLevel = CompressionLevel.Optimal; 10290 => CompressionLevel.Optimal, 1033_ => CompressionLevel.Optimal 1050CompressionLevel.Optimal => 0,
System\IO\Compression\Zstandard\ZstandardUtils.cs (1)
94CompressionLevel.Optimal => Quality_Default,
System.IO.Compression.Brotli (1)
System\IO\Compression\BrotliUtils.cs (1)
20CompressionLevel.Optimal => Quality_Default,
System.IO.Packaging (1)
System\IO\Packaging\ZipPackage.cs (1)
453compressionLevel = CompressionLevel.Optimal;
System.Reflection.Metadata (1)
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.EmbeddedPortablePdb.cs (1)
50using (var deflate = new DeflateStream(new BlobBuilderStream(builder), CompressionLevel.Optimal, leaveOpen: true))