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

[2.4] Memory improvements #362

Merged
merged 4 commits into from
May 7, 2024
Merged

Conversation

Ladicek
Copy link
Collaborator

@Ladicek Ladicek commented May 7, 2024

No description provided.

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 changed the title Memory improvements [2.4] Memory improvements May 7, 2024
@Ladicek Ladicek merged commit 63d41a4 into smallrye:2.4 May 7, 2024
6 checks passed
@Ladicek Ladicek deleted the memory-improvements-2.4 branch May 7, 2024 09:01
@Ladicek Ladicek added this to the 2.4.5.Final milestone May 13, 2024
This pull request was closed.
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