DescriptionHTMLConstructionSite: avoid n^2 running time for large scripts.
Every time background parser sends chunk, tree is flushed.
If page contains very large script, then script node content is updated
many times. Every update is causes string concatenation.
Solution: do not flush pending text until it is mandatory.
Test: https://codereview.chromium.org/500363002
Test depends on: https://codereview.chromium.org/544453004/
BUG=410790
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181635
Patch Set 1 #
Total comments: 2
Patch Set 2 : Add FlushMode enum #
Total comments: 2
Patch Set 3 : #
Total comments: 2
Patch Set 4 : #
Total comments: 1
Patch Set 5 : Fix assert #
Messages
Total messages: 31 (8 generated)
|