Skip to content

Speed up Maps.copyMapWithAddedEntry to Speed up ITs (#73308)#74046

Merged
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:73308-7.x
Jun 13, 2021
Merged

Speed up Maps.copyMapWithAddedEntry to Speed up ITs (#73308)#74046
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:73308-7.x

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

This method is taking about 4% of CPU time with internal cluster tests
for me. 80% of that were coming from the slow immutability assertion,
the rest was due to the slow way we were building up the new map.
The CPU time slowness likely translates into outright test slowness,
because this was mainly hit through adding transport handlers when starting
nodes (which happens on the main test thread).

Fixed both to save a few % of test runtime.

backport of #73308

This method is taking about 4% of CPU time with internal cluster tests
for me. 80% of that were coming from the slow immutability assertion,
the rest was due to the slow way we were building up the new map.
The CPU time slowness likely translates into outright test slowness,
because this was mainly hit through adding transport handlers when starting
nodes (which happens on the main test thread).

Fixed both to save a few % of test runtime.
@original-brownbear original-brownbear added :Core/Infra/Core Core issues without another label backport labels Jun 13, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Jun 13, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@original-brownbear original-brownbear merged commit 92abe73 into elastic:7.x Jun 13, 2021
@original-brownbear original-brownbear deleted the 73308-7.x branch June 13, 2021 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants