-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up building RoutingTable from RoutingNodes (#86903)
We do the routing nodes -> routing table step during reroute and it's a significant contributor to the runtime of reroute. The PR speeds it up by more than double in the common one shard + one primary case by saving the expensive and slow-to-iterate hashmap keyed by shard id, the needless precomputation of the allocation ids set and a redundant round of building `IndexShardRoutingTable` in `addShard`. This gives us another 2-3% speedup on the initial indices bootstrap in the many-shards benchmark.
- Loading branch information
1 parent
b9c504b
commit ab5ff6f
Showing
40 changed files
with
251 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.