1
1
mirror of https://github.com/MarginaliaSearch/MarginaliaSearch.git synced 2025-10-05 21:22:39 +02:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Viktor Lofgren
233f0acfb1 (index) Further reduce query buffer size 2025-07-27 17:13:08 +02:00
Viktor Lofgren
e3a4ff02e9 (index) Abandon ongoing evaluation tasks if time is up 2025-07-27 17:04:01 +02:00
Viktor Lofgren
c786283ae1 (index) Reduce quer buffer size 2025-07-27 16:57:55 +02:00

View File

@@ -66,7 +66,7 @@ public class IndexQueryExecution {
// Await evaluation task termination
synchronized (IndexQueryExecution.this) {
while (evaluationJobCounter > 0) {
while (evaluationJobCounter > 0 && budget.hasTimeLeft()) {
IndexQueryExecution.this.wait(budget.timeLeft());
}
}
@@ -76,7 +76,7 @@ public class IndexQueryExecution {
}
private void lookup(IndexQuery query) {
final LongQueryBuffer buffer = new LongQueryBuffer(8192);
final LongQueryBuffer buffer = new LongQueryBuffer(512);
try {
while (query.hasMore() && budget.hasTimeLeft()) {