Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

scarytom
Copy link

@scarytom scarytom commented Jun 6, 2024

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 and others added 5 commits May 26, 2024 14:27
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
Copy link
Member

@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:

  • Conditionally requiring namespaces that implement specific compressors example
  • Conditionally compiling relevant code example
  • Potentially caching any reflection, if reflection is really necessary (don't have an example handy, sorry).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants