Status: Available
Owner: ----
CC:
ba...@chromium.org,
tk...@chromium.org,
nba...@chromium.org,
kenji...@chromium.org
Labels: Type-Bug Pri-2 OS-All Cr-Blink Cr-Blink-Editing Cr-Blink-Forms
Cr-Blink-Performance
New issue 237433 by
nba...@chromium.org: Editing textarea with lots of text
is slow
http://code.google.com/p/chromium/issues/detail?id=237433
Splitting off from Issue 109587
Attaching (slightly edited) reproduction from
https://code.google.com/p/chromium/issues/detail?id=109587#c4
For reference, can generate a textarea with long text via these commands:
echo '<textarea rows=30 cols=80>' > /tmp/longtext.html
for i in {1..80000} ; do echo 'foo' >> /tmp/longtext.html ; done
echo '</textarea> >> /tmp/longtext.html
Description:
Editing a textarea with lots of text is noticeably slow.
Open up attached test case in Firefox and in Chrome.
Once loaded, navigation in Firefox is instant, but navigation in Chrome
(up, down, left, right, home, end, Ctrl-home, Ctrl-end) are slow, lagging
by about a second.
Deletes and inserts (backspace and typing) are also slow in Chrome; slight
lag in Firefox, but virtually none.
Cause:
Presumably there are some algorithms in the navigation/editing code which
are O(n) in the number of lines or number of characters in the textarea,
which need to be O(1) to be scaleable.
Attachments:
textarea-with-long-text.html 4.6 MB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings