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

Optimize IndexTemplateRegistry#clusterChanged #115347

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

joegallo
Copy link
Contributor

The streaming code in these loops is hot enough to show up in a flamegraph, unrolling them isn't significantly less readable and it is faster.

Note: I'm optimizing the GeoIpDownloaderTaskExecutor#clusterChanged (coming in a future PR) and this jumped out at me in the flamegraphs as something nearby that was easy enough to improve while I was in the area.

The streaming code in these loops is hot enough to show up in a
flamegraph, unrolling them isn't significantly less readable and it is
faster.
@joegallo joegallo added :Data Management/Indices APIs APIs to create and manage indices and templates >refactoring Team:Data Management Meta label for data/management team v9.0.0 v8.17.0 labels Oct 22, 2024
@joegallo joegallo requested a review from masseyke October 22, 2024 15:50
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@joegallo joegallo added the auto-backport Automatically create backport pull requests when merged label Oct 22, 2024
@joegallo joegallo merged commit ee51f5f into elastic:main Oct 22, 2024
16 checks passed
@joegallo joegallo deleted the optimize-index-template-registry branch October 22, 2024 20:05
joegallo added a commit to joegallo/elasticsearch that referenced this pull request Oct 22, 2024
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

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 :Data Management/Indices APIs APIs to create and manage indices and templates >refactoring Team:Data Management Meta label for data/management team v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants