public void MultipleThreadsStreamCompressViaLinq() { UseDefaultConfiguration(defaultConfiguration => { UseDifferentBufferSizes(defaultConfiguration, bufferSize => { UseMeasure(stopMeasure => { CompressionStream.MultipleThreadsCompressByParts( defaultConfiguration.CompressingFile.FullName, defaultConfiguration.CompressedFile.FullName, bufferSize); stopMeasure(); }, defaultConfiguration.CompressingFile); }); }); }
public void SingleThreadStreamCompress() { UseDefaultConfiguration(defaultConfiguration => { UseDifferentBufferSizes(defaultConfiguration, bufferSize => { UseMeasure(stopMeasure => { CompressionStream.Compress( defaultConfiguration.CompressingFile.FullName, defaultConfiguration.CompressedFile.FullName, bufferSize); stopMeasure(); }, defaultConfiguration.CompressingFile); }); }); }