Skip to content

[WIP][Java] Using functions for mapping #1007

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

Open
wants to merge 2 commits into
base: branch-25.08
Choose a base branch
from

Conversation

ldematte
Copy link
Contributor

@ldematte ldematte commented Jun 11, 2025

This PR replaces "array" based ID mappings with a more free-form mapping based on functions.
This should be more efficient both when the number of IDs is huge (you don't need to actually allocate big list for all IDs to map) and in general (as it won't need to perform boxing/unboxing of integers).
It should also be more flexible; as an example, I have introduced a simple helper to wrap a list, so that the previous approach can still be used. The same can be done for maps etc.

WIP as this lacks (and needs) tests

Relates to #699

Copy link

copy-pr-bot bot commented Jun 11, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@cjnolet cjnolet added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Jun 11, 2025
@cjnolet
Copy link
Member

cjnolet commented Jun 11, 2025

/ok to test b3856a1

@cjnolet
Copy link
Member

cjnolet commented Jun 11, 2025

/ok to test 6a46323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves an existing functionality non-breaking Introduces a non-breaking change
Projects
Development

Successfully merging this pull request may close these issues.

2 participants