-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve efficiency of bulk removals in transformed lists.
Override removeRange(int,int) for Lists.TransformingSequentialList and Lists.TransformingRandomAccessList so that source list has opportunity to do more efficient deletions. Call fromList.subList(from, to).clear() instead of removing with iterator. Fixes #5762 Fixes #6087 RELNOTES=n/a PiperOrigin-RevId: 542355023
- Loading branch information
Showing
2 changed files
with
20 additions
and
8 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