예제 #1
0
 public void PrintLzma2CompressMemUsage()
 {
     foreach (LzmaCompLevel level in Enum.GetValues(typeof(LzmaCompLevel)))
     {
         for (int th = 1; th <= Environment.ProcessorCount * 2; th++)
         {
             ulong  usage    = EncodedFile.QueryLzma2CompressMemUsage(level, th);
             string usageStr = NumberHelper.ByteSizeToSIUnit((long)usage, 1);
             Console.WriteLine($"Memory usage of {level}, Threads {th} = {usageStr} ({usage})");
         }
     }
 }