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

[3.0] Memory improvements #366

Merged
merged 4 commits into from
May 13, 2024
Merged

Conversation

Ladicek
Copy link
Contributor

@Ladicek Ladicek commented May 13, 2024

No description provided.

Ladicek added 4 commits May 13, 2024 10:38
This commit replaces `Collections.unmodifiableList(Arrays.asList(array))`
with `new ImmutableArrayList<>(array)`, where `ImmutableArrayList` is
a simple implementation of an immutable array-backed list. This reduces
the number of allocations from 2 to 1 on many places in the code.

Additionally, this commit slightly improves javadoc of some methods
in the `AnnotationInstance` class.
@Ladicek Ladicek merged commit 51e30b1 into smallrye:3.0 May 13, 2024
39 checks passed
@Ladicek Ladicek deleted the memory-improvements-3.0 branch May 13, 2024 09:41
@Ladicek Ladicek added this to the 3.0.7 milestone May 13, 2024
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.

1 participant