forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce copying in
GetSnapshotsOperation#snapshots()
(elastic#105765)
No need to create a set (the values are distinct anyway), make a separate synchronized list, populate them both, and finally copy them both again into another concatenated list. We can just make the final list up front.
- Loading branch information
1 parent
416de3c
commit 42786aa
Showing
1 changed file
with
36 additions
and
36 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