Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make AllocationDeciders.canRemain more Efficient (elastic#83171)
The iteration before this change was over the value collection of a linked hash map, wrapped in unmodifiable. Given that this runs approximately #deciders * #shards iterations during a reroute it makes sense to optimize here. In practice the iteration did not inline well and showed up as about 25% of the overall cost of this method.
- Loading branch information