-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…0803) The loop here is obviously O(N^2) and it shows as taking multiple seconds to build the by-index map in x-content serialization for a 25k shards snapshot. This makes the logic O(N) and fixes some potential issues with consistency around concurrent access by using a more appropriate access pattern to the field caching the by-index map.
- Loading branch information
1 parent
d63cc81
commit 4535391
Showing
2 changed files
with
16 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 90795 | ||
summary: Fix quadratic complexity in `SnapshotStatus` serialization | ||
area: Snapshot/Restore | ||
type: bug | ||
issues: [] |
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