mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(index) Improve granularity of candidate queue polling
This commit is contained in:
parent
427f3e922f
commit
3eb0800742
@ -348,7 +348,7 @@ public class IndexGrpcService extends IndexApiGrpc.IndexApiImplBase {
|
|||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
|
|
||||||
CombinedDocIdList resultIds = resultCandidateQueue.poll(
|
CombinedDocIdList resultIds = resultCandidateQueue.poll(
|
||||||
Math.clamp(parameters.budget.timeLeft(), 1, 25),
|
Math.clamp(parameters.budget.timeLeft(), 1, 5),
|
||||||
TimeUnit.MILLISECONDS);
|
TimeUnit.MILLISECONDS);
|
||||||
|
|
||||||
if (resultIds == null) {
|
if (resultIds == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user