DescriptionMerge 120850 - Regression(r116408): Ctrl-A (select all) on large text file hangs the tab with high CPU usage
https://bugs.webkit.org/show_bug.cgi?id=89562
Reviewed by Ryosuke Niwa.
Rather than replace the newlines in-place (in O(n^2)), build a new string using StringBuilder, which takes O(n).
No new tests, this is a perf improvement.
* platform/chromium/ClipboardUtilitiesChromium.cpp:
(WebCore::replaceNewlinesWithWindowsStyleNewlines):
* platform/win/ClipboardUtilitiesWin.cpp:
(WebCore::replaceNewlinesWithWindowsStyleNewlines):
TBR=tony@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=121035
Patch Set 1 #
Messages
Total messages: 2 (0 generated)
|