DescriptionMake WidgetHierarchyUpdatesSuspensionScope use swap instead of copy
This is equivalent behavior code that is unambiguously better performance. swap is O(1) time and memory, copying a hash table is at least linear with the number of elements.
(Caveat: I don't know how big that map can get, so this may not have any noticeable impact on performance).
BUG=
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150931
Patch Set 1 #
Total comments: 2
Messages
Total messages: 6 (0 generated)
|