limit the number of workspace symbols to 100 on retrieval to improve performance

This commit is contained in:
Martin Lippert
2018-11-22 15:03:18 +01:00
parent 1e4edbb37c
commit 8654475b83

View File

@@ -278,7 +278,7 @@ public class SpringIndexer {
if (query != null && query.length() > 0) {
return searchMatchingSymbols(this.symbols, query);
} else {
return this.symbols;
return this.symbols.subList(0, Math.min(50, this.symbols.size()));
}
}