compress icon indicating copy to clipboard operation
compress copied to clipboard

lzfse support

Open blacktop opened this issue 3 years ago • 4 comments

Would it be possible to add https://github.com/lzfse/lzfse support?

blacktop avatar Jan 28 '22 02:01 blacktop

@blacktop I am not really sure what its purpose is. It seems like there is a 2GB size limit, so it is for blocks only.

It seems to compress worse than zstandard at default settings (level 3) and a whole lot slower - at least the library above.

A decoder could be feasible, but honestly someone should just wrap the library in cgo.

klauspost avatar Jan 28 '22 10:01 klauspost

Ya that's what I did https://github.com/blacktop/lzfse-cgo, but it feels gross. Thought if you "liked" the algo you might pure-Go/optimize the heck out of it 😁

I hate having to introduce CGO as it makes the build process so gross and calling C is dangerous.

Lzfse is Apple's compressor of choice for most things.

blacktop avatar Jan 28 '22 14:01 blacktop

Yeah, it may be great for Apple, but it doesn't really seem great for much else.

For now, I will for now focus on "best in class" compressors, or commonly used ones. It just seems like the format isn't that great.

klauspost avatar Jan 28 '22 15:01 klauspost

Understood

blacktop avatar Jan 28 '22 16:01 blacktop