Skip to content

Conversation

@gianm
Copy link
Contributor

@gianm gianm commented Nov 23, 2025

Calling "addAll" is more efficient than calling "add" in a loop, it is O(N) instead of O(N^2).

Calling "addAll" is more efficient than calling "add" in a loop,
it is O(N) instead of O(N^2).
Copy link
Contributor

@kfaraz kfaraz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!

@gianm gianm merged commit 59b698d into apache:master Nov 23, 2025
57 checks passed
@gianm gianm deleted the compact-iterator-addall branch November 23, 2025 15:01
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