Skip to content

Use empty arrays instead of pre-sized ones - #188

Merged
elharo merged 6 commits into
masterfrom
infer
Mar 6, 2025
Merged

elharo merged 6 commits into
masterfrom
infer

Conversation

@elharo

@elharo elharo commented Mar 5, 2025 •

Copy link
Copy Markdown
Contributor

Simpler code, and better performance since Java 1.6

see https://stackoverflow.com/questions/53284214/toarray-with-pre-sized-array

@elharo elharo changed the title Infer Use empty arrays instead of pre-sized ones Mar 6, 2025
@elharo
elharo marked this pull request as ready for review March 6, 2025 20:22
@elharo
elharo requested a review from michael-o March 6, 2025 20:22
@elharo
elharo merged commit 81ebe0d into master Mar 6, 2025
@elharo
elharo deleted the infer branch March 6, 2025 20:58
@slachiewicz slachiewicz added this to the 3.5.0 milestone Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants