Skip to content

Conversation

@original-brownbear
Copy link
Contributor

Just a couple obvious finds. No need to start from null here, just makes locality worse to so and adds conditionals. Also, we can save some field lookups and a needless hot allocation of BytesRef that isn't guaranteed to be escape analyzed away.

Just a couple obvious finds. No need to start from `null` here,
just makes locality worse to so and adds conditionals. Also, we can save some field lookups
and a needless hot allocation of `BytesRef` that isn't guaranteed to be escape analyzed away.
@original-brownbear original-brownbear added >non-issue :Search Foundations/Search Catch all for Search Foundations labels May 4, 2025
@elasticsearchmachine elasticsearchmachine added v9.1.0 Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch labels May 4, 2025
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@drempapis drempapis left a comment

Choose a reason for hiding this comment

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

LGTM

@original-brownbear original-brownbear added auto-backport Automatically create backport pull requests when merged v8.19.0 labels May 5, 2025
@original-brownbear
Copy link
Contributor Author

Thanks Dimitris!

@original-brownbear original-brownbear merged commit 3f829e4 into elastic:main May 5, 2025
16 of 17 checks passed
@original-brownbear original-brownbear deleted the remove-indirection-fields-visitor branch May 5, 2025 12:22
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.19

original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request May 5, 2025
Just a couple obvious finds. No need to start from `null` here,
just makes locality worse to so and adds conditionals. Also, we can save some field lookups
and a needless hot allocation of `BytesRef` that isn't guaranteed to be escape analyzed away.
ywangd pushed a commit to ywangd/elasticsearch that referenced this pull request May 9, 2025
Just a couple obvious finds. No need to start from `null` here,
just makes locality worse to so and adds conditionals. Also, we can save some field lookups
and a needless hot allocation of `BytesRef` that isn't guaranteed to be escape analyzed away.
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request May 12, 2025
Just a couple obvious finds. No need to start from `null` here,
just makes locality worse to so and adds conditionals. Also, we can save some field lookups
and a needless hot allocation of `BytesRef` that isn't guaranteed to be escape analyzed away.
elasticsearchmachine pushed a commit that referenced this pull request Jul 29, 2025
* Fix some inefficiencies in FieldsVisitor (#127688)

Just a couple obvious finds. No need to start from `null` here,
just makes locality worse to so and adds conditionals. Also, we can save some field lookups
and a needless hot allocation of `BytesRef` that isn't guaranteed to be escape analyzed away.

* update code after backporting from 9.0

---------

Co-authored-by: Dimitris Rempapis <[email protected]>
Co-authored-by: Stanislav Malyshev <[email protected]>
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.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants