From d5ea0a1bc2fae7c6084b0c5cc9b68a925a0f50f6 Mon Sep 17 00:00:00 2001 From: Gilles Debunne Date: Wed, 28 Sep 2011 18:51:23 -0700 Subject: Bug 5250788: EditText gets slower has the entered text gets longer Profiling showed that the bottle neck was in the word iterator. Now initializing the word iteerator to only a window around the region of interest to reduce the text analysis. Change-Id: Ibfa4952cbf52a1b36726f965143ac7a6dc63673e --- core/java/android/text/method/WordIterator.java | 4 ---- 1 file changed, 4 deletions(-) (limited to 'core/java/android/text/method') diff --git a/core/java/android/text/method/WordIterator.java b/core/java/android/text/method/WordIterator.java index 0433ec4..af524ee 100644 --- a/core/java/android/text/method/WordIterator.java +++ b/core/java/android/text/method/WordIterator.java @@ -73,10 +73,6 @@ public class WordIterator implements Selection.PositionIterator { } }; - public void forceUpdate() { - mCurrentDirty = true; - } - public void setCharSequence(CharSequence incoming) { // When incoming is different object, move listeners to new sequence // and mark as dirty so we reload contents. -- cgit v1.1