Don't use parallelStream to keep number of threads down
This commit is contained in:
@@ -69,6 +69,7 @@ public class JavaData {
|
||||
return createTypeData((IType) element);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.log("Failed to fetch type data for element witn key: " + bindingKey);
|
||||
logger.log(e);
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -547,7 +547,7 @@ public class SpringSymbolIndex implements InitializingBean {
|
||||
}
|
||||
|
||||
public Stream<WorkspaceSymbol> getSymbols(Predicate<EnhancedSymbolInformation> filter) {
|
||||
return symbols.parallelStream()
|
||||
return symbols.stream()
|
||||
.filter(filter)
|
||||
.map(enhanced -> enhanced.getSymbol());
|
||||
}
|
||||
|
||||
@@ -339,7 +339,7 @@ public class PropertiesCompletionProposalsCalculator {
|
||||
Collection<Match<PropertyInfo>> matches = findMatches(prefix);
|
||||
if (matches!=null && !matches.isEmpty()) {
|
||||
ArrayList<ICompletionProposal> proposals = new ArrayList<ICompletionProposal>(matches.size());
|
||||
matches.parallelStream().forEach(match -> {
|
||||
matches.stream().forEach(match -> {
|
||||
DocumentEdits docEdits;
|
||||
try {
|
||||
docEdits = LazyProposalApplier.from(() -> {
|
||||
|
||||
@@ -466,7 +466,7 @@ public abstract class ApplicationYamlAssistContext extends AbstractYamlAssistCon
|
||||
Collection<Match<PropertyInfo>> matchingProps = indexNav.findMatching(query);
|
||||
if (!matchingProps.isEmpty()) {
|
||||
ArrayList<ICompletionProposal> completions = new ArrayList<ICompletionProposal>();
|
||||
matchingProps.parallelStream().forEach(match -> {
|
||||
matchingProps.stream().forEach(match -> {
|
||||
try {
|
||||
DocumentEdits edits = createEdits(doc, node, offset, query, match);
|
||||
ScoreableProposal completion = completionFactory.property(
|
||||
|
||||
Reference in New Issue
Block a user