Skip to content

Conversation

original-brownbear
Copy link
Contributor

This is a significant portion of CS updates at the moment. We should look into avoiding the computation here altogether unless the nodes change, but until then this is a trivial ~5x speedup that saves loads cluster state thread time, especially in integration tests.
Streams just aren't worth it for short iterations and are definitely wrong to be used for comparing 2 elements ...

This is a significant portion of CS updates at the moment.
We should look into avoiding the computation here altogether unless the
nodes change, but until then this is a trivial ~5x speedup that saves
loads cluster state thread time, especially in integration tests.
@original-brownbear original-brownbear added >non-issue :Core/Infra/Core Core issues without another label labels Aug 24, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Aug 24, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Contributor

@ldematte ldematte 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
Copy link
Contributor Author

Thanks Lorenzo!

@original-brownbear original-brownbear merged commit 030f425 into elastic:main Aug 26, 2024
@original-brownbear original-brownbear deleted the make-compat-versions-cheaper branch August 26, 2024 10:13
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this pull request Sep 4, 2024
This is a significant portion of CS updates at the moment.
We should look into avoiding the computation here altogether unless the
nodes change, but until then this is a trivial ~5x speedup that saves
loads cluster state thread time, especially in integration tests.
@original-brownbear original-brownbear restored the make-compat-versions-cheaper branch November 30, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Core Core issues without another label >non-issue Team:Core/Infra Meta label for core/infra team v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants