taoensso / nippy

The fastest serialization library for Clojure
https://www.taoensso.com/nippy
Eclipse Public License 1.0
1.04k stars 60 forks source link

[nop] [#176] make deps on compression libs optional #177

Open scarytom opened 4 weeks ago

scarytom commented 4 weeks ago

Use reflective calls to interact with org.tukaani/xz and io.airlift/aircompressor so that users of nippy can choose to exclude those dependencies if they aren't using compression.

Reflective calls are much slower, and some type-hints were also removed, so these changes might affect performance.

ptaoussanis commented 4 weeks ago

@scarytom Hi Tom, thanks for looking into this 🙏

Unfortunately I'm definitely not keen on anything that'd impact performance for typical users. Haven't given this detailed thought since I'm currently focused on other priorities, but in case it's helpful - some other ideas to consider would be: