memLevel property

int memLevel
final

Specifies how much memory should be allocated for the internal compression state. 1 uses minimum memory but is slow and reduces compression ratio; 9 uses maximum memory for optimal speed. The default value is 8.

The memory requirements for deflate are (in bytes):

(1 << (windowBits + 2)) +  (1 << (memLevel + 9))

that is: 128K for windowBits = 15 + 128K for memLevel = 8 (default values)

Implementation

final int memLevel;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/GZipCodec/memLevel.html