Skip to content

Conversation

@original-brownbear
Copy link
Contributor

Building the map is needlessly expensive, we can just use the empty filter as a default throughout the logic and save a lot of indirection.

This is a reasonable simplification + memory saving now and a critical performance improvement once #118490 lands.
Also, made the buildAliasFilter method faster on the hot path without aliases.

Building the map is needlessly expensive, we can just the empty filter as a default.
@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Jan 20, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@original-brownbear
Copy link
Contributor Author

hmpf the BwC here is really tricky, draft for now, no need to review

@original-brownbear
Copy link
Contributor Author

salvaged what still applies from this in #127240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants