W3cubDocs

/Dart 2

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.dartlang.org/stable/2.0.0/dart-io/ZLibEncoder/memLevel.html