Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2016-05-14 02:59:19 +0000
committerSergey Prigogin2016-05-17 22:06:35 +0000
commit31453f940bb5a7a2a6e89c1c7b73500e1a306a24 (patch)
treece58e124bb74bfd85398ac0e58373b83277e0a43 /org.eclipse.search
parent60b739e50281a6b26ad332b21eb0062cd974c122 (diff)
downloadeclipse.platform.text-31453f940bb5a7a2a6e89c1c7b73500e1a306a24.tar.gz
eclipse.platform.text-31453f940bb5a7a2a6e89c1c7b73500e1a306a24.tar.xz
eclipse.platform.text-31453f940bb5a7a2a6e89c1c7b73500e1a306a24.zip
Bug 493687 - UI slow to respond during file searchI20160517-2000
Diffstat (limited to 'org.eclipse.search')
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java2
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 35e958a613c..ba0b815c809 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= Runtime.getRuntime().availableProcessors();
+ private static final int NUMBER_OF_LOGICAL_THREADS= Math.max(1, Runtime.getRuntime().availableProcessors() / 2);
private static final int FILES_PER_JOB= 50;
public static class ReusableMatchAccess extends TextSearchMatchAccess {

Back to the top