Skip to content

Conversation

@original-brownbear
Copy link
Contributor

Random find: We're not mutating that list ever, so lets just use an immutable list all the way here and avoid at least one round of needless copy.

We're not mutating that list ever, so lets just use an immutable list
all the way here and avoid at least one round of needless copy.
@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Feb 4, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks Armin!

@original-brownbear original-brownbear added auto-backport Automatically create backport pull requests when merged v8.18.0 labels Feb 6, 2025
@original-brownbear
Copy link
Contributor Author

Thanks Nhat!

@original-brownbear original-brownbear merged commit 59631fd into elastic:main Feb 6, 2025
17 checks passed
@original-brownbear original-brownbear deleted the fix-list-copy-can-match branch February 6, 2025 02:50
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Feb 6, 2025
We're not mutating that list ever, so lets just use an immutable list
all the way here and avoid at least one round of needless copy.
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
9.0
8.18 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 121700

elasticsearchmachine pushed a commit that referenced this pull request Feb 6, 2025
We're not mutating that list ever, so lets just use an immutable list
all the way here and avoid at least one round of needless copy.
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Apr 4, 2025
We're not mutating that list ever, so lets just use an immutable list
all the way here and avoid at least one round of needless copy.
elasticsearchmachine pushed a commit that referenced this pull request Apr 4, 2025
We're not mutating that list ever, so lets just use an immutable list
all the way here and avoid at least one round of needless copy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >non-issue :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v8.18.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants