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

Don't intern leafName in Mapper.Builder #119554

Merged

Conversation

original-brownbear
Copy link
Member

We shouldn't intern in the builder already.
It's redundant since we'll be interning the mapper name when we actually build the mapper instance anyway and introduces a non-trivial slowdown into mapper serialization because we create temporary builders during serialization that never turn into concrete instances.

We shouldn't intern in the builder already.
It's redundant since we'll be interning the mapper name
when we actually build the mapper instance anyway and introduces a
non-trivial slowdown into mapper serialization because we create
temporary builders during serialization that never turn into
concrete instances.
@original-brownbear original-brownbear added >non-issue :Search Foundations/Mapping Index mappings, including merging and defining field types labels Jan 4, 2025
@elasticsearchmachine elasticsearchmachine added v9.0.0 Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch labels Jan 4, 2025
@elasticsearchmachine
Copy link
Collaborator

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

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

Thanks Luca!

@original-brownbear original-brownbear merged commit 92d1aa9 into elastic:main Jan 6, 2025
16 checks passed
@original-brownbear original-brownbear deleted the remove-extra-intern branch January 6, 2025 17:12
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Jan 6, 2025
We shouldn't intern in the builder already.
It's redundant since we'll be interning the mapper name
when we actually build the mapper instance anyway and introduces a
non-trivial slowdown into mapper serialization because we create
temporary builders during serialization that never turn into
concrete instances.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

elasticsearchmachine pushed a commit that referenced this pull request Jan 6, 2025
We shouldn't intern in the builder already.
It's redundant since we'll be interning the mapper name
when we actually build the mapper instance anyway and introduces a
non-trivial slowdown into mapper serialization because we create
temporary builders during serialization that never turn into
concrete instances.
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/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants