DescriptionNew SELECT Popup: Remove O(N^2) scan for OPTIONs.
HTMLOptionElement::listIndex() is O(N), and we need to call it
for each of OPTIONs.
After this patch, PopupMenuImpl calculate listIndex incrementally
while iterating over OPTIONs.
This CL makes writeDocument() 16x faster with 43k OPTIONs.
BUG=500401
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197429
Patch Set 1 #
Messages
Total messages: 6 (2 generated)
|
||||||||||||||||||||||||||||