-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small optimisation in ClearScrollController (#92799)
Today `ClearScrollController#closeContexts` uses a `GroupedActionListener` which accumulates its results in an `AtomicArray<Boolean>`, and then at the end it counts all the `TRUE` entries to complete the final listener. There's no need for this `O(N)` memory usage, we can just count the successes as they come in.
- Loading branch information
1 parent
9096f43
commit 5316222
Showing
1 changed file
with
26 additions
and
29 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