Skip to content

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).

@ptaoussanis ptaoussanis force-pushed the master branch 6 times, most recently from c4537e6 to 2a4347c Compare October 10, 2024 11:23
@ptaoussanis ptaoussanis force-pushed the master branch 4 times, most recently from e848af6 to b02b375 Compare October 29, 2024 10:08
@ptaoussanis ptaoussanis force-pushed the master branch 7 times, most recently from 931c416 to 1b99516 Compare April 15, 2025 08:42
@ptaoussanis ptaoussanis force-pushed the master branch 4 times, most recently from f7594d5 to 40b3dcc Compare November 6, 2025 16:29
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