Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2018-04-26 22:02:06 +0000
committerAlexander Kurtakov2018-10-12 14:20:25 +0000
commit12742e5cd5c68d179d1022a8604c4fedf7660344 (patch)
treec2c9bdd2e18a68ca9e3e11cf62dde28dc249c008
parenta35cc4fcf86e4356dc9e591ed9718fe6cc911a9a (diff)
downloadeclipse.platform.swt-12742e5cd5c68d179d1022a8604c4fedf7660344.tar.gz
eclipse.platform.swt-12742e5cd5c68d179d1022a8604c4fedf7660344.tar.xz
eclipse.platform.swt-12742e5cd5c68d179d1022a8604c4fedf7660344.zip
Bug 534123 - Increase CACHE_SIZE
Raises the probability to hit the cache when a large number of lines are displayed in an editor. Change-Id: Iaa4099be2ebfe65e0b311fcfe3f83eb5bc4dab7d Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java
index 50bf103577..75153c957a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java
@@ -71,7 +71,7 @@ class StyledTextRenderer {
final static int GROW = 32;
final static int IDLE_TIME = 50;
- final static int CACHE_SIZE = 128;
+ final static int CACHE_SIZE = 300;
final static int BACKGROUND = 1 << 0;
final static int ALIGNMENT = 1 << 1;

Back to the top