Global Variable

COMPRESSION_LZFSE

The LZFSE compression algorithm, that is recommended for use on Apple platforms.

Declaration

var COMPRESSION_LZFSE: compression_algorithm { get }

Discussion

LZFSE is Apple’s proprietary compression algorithm, matching the compression ratio of zlib level 5, but with much higher energy efficiency and speed (between 2x and 3x) for both encode and decode operations.

Use LZFSE when compressing a payload for iOS, macOS, watchOS, and tvOS. If you need to compress a payload for another platform (for example, Linux or Windows), use LZ4, LZMA, or zlib.

See Also

Algorithm Constants

var COMPRESSION_LZ4: compression_algorithm

The LZ4 compression algorithm, that is recommended for fast compression.

var COMPRESSION_LZ4_RAW: compression_algorithm

The LZ4 compression algorithm, without frame headers.

var COMPRESSION_LZMA: compression_algorithm

The LZMA compression algorithm, that is recommended for high-compression ratio.

var COMPRESSION_ZLIB: compression_algorithm

The zlib compression algorithm, that is recommended for cross-platform compression.