---
title: Algorithm.lzfse
framework: compression
role: symbol
role_heading: Case
path: compression/algorithm/lzfse
---

# Algorithm.lzfse

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

## Declaration

```swift
case lzfse
```

## Discussion

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

### Related Documentation

- [COMPRESSION_LZFSE](compression/compression_lzfse.md)
