Skip to content

[9.0] [Investigations][Timeline] - Run Object.keys less frequently (#219629)#219750

Merged
kibanamachine merged 1 commit intoelastic:9.0from
kibanamachine:backport/9.0/pr-219629
Apr 30, 2025
Merged

[9.0] [Investigations][Timeline] - Run Object.keys less frequently (#219629)#219750
kibanamachine merged 1 commit intoelastic:9.0from
kibanamachine:backport/9.0/pr-219629

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.0:

Questions ?

Please refer to the Backport tool documentation

…#219629)

## Summary

This PR makes a minor performance improvement by pulling out the
`Object.keys` call on `hit.fields` out of any unnecessary loops.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit fd4ff0a)
@kibanamachine kibanamachine merged commit 5596f73 into elastic:9.0 Apr 30, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants