diff options
author | Dani Megert | 2016-05-19 15:00:58 +0000 |
---|---|---|
committer | Dani Megert | 2016-05-19 15:01:08 +0000 |
commit | 1f95cbc54057e53cec3824cac081315879518d5c (patch) | |
tree | ba7bca1800ae2e5b46005c22f78ce8a46dba9a33 | |
parent | 8fb8cc2c0fc9f641a46c0854d512ff7f1917d7de (diff) | |
download | eclipse.platform.text-1f95cbc54057e53cec3824cac081315879518d5c.tar.gz eclipse.platform.text-1f95cbc54057e53cec3824cac081315879518d5c.tar.xz eclipse.platform.text-1f95cbc54057e53cec3824cac081315879518d5c.zip |
Revert "Bug 493687 - UI slow to respond during file search"Y20160526-1000I20160530-2000I20160529-2000I20160528-1500I20160527-2000I20160525-2000I20160524-2000I20160523-2000I20160522-2000I20160521-1500I20160520-2000I20160519-1730I20160519-1100
This reverts commit 31453f940bb5a7a2a6e89c1c7b73500e1a306a24.
Change-Id: I9e85a29da4873a6df1c1c29a0d542537b6e76b3f
-rw-r--r-- | org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java b/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java index ba0b815c809..35e958a613c 100644 --- a/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java +++ b/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java @@ -74,7 +74,7 @@ import org.eclipse.search.ui.NewSearchUI; public class TextSearchVisitor { public static final boolean TRACING= "true".equalsIgnoreCase(Platform.getDebugOption("org.eclipse.search/perf")); //$NON-NLS-1$ //$NON-NLS-2$ - private static final int NUMBER_OF_LOGICAL_THREADS= Math.max(1, Runtime.getRuntime().availableProcessors() / 2); + private static final int NUMBER_OF_LOGICAL_THREADS= Runtime.getRuntime().availableProcessors(); private static final int FILES_PER_JOB= 50; public static class ReusableMatchAccess extends TextSearchMatchAccess { |