Re: [PR] Move HitQueue in TopScoreDocCollector to a LongHeap [lucene]

2025-06-04 Thread via GitHub
gf2121 commented on PR #14714: URL: https://github.com/apache/lucene/pull/14714#issuecomment-2942786427 > Since the top-k heap appears to be a bottleneck for some queries, we could look into whether a radix heap would perform better than a binary heap in a follow-up. +1, that would b

Re: [PR] Move HitQueue in TopScoreDocCollector to a LongHeap [lucene]

2025-06-04 Thread via GitHub
jpountz commented on PR #14714: URL: https://github.com/apache/lucene/pull/14714#issuecomment-2938964435 Since the top-k heap appears to be a bottleneck for some queries, we could look into whether a radix heap would perform better than a binary heap in a follow-up. -- This is an automat

Re: [PR] Move HitQueue in TopScoreDocCollector to a LongHeap [lucene]

2025-06-03 Thread via GitHub
gf2121 commented on code in PR #14714: URL: https://github.com/apache/lucene/pull/14714#discussion_r2125750621 ## lucene/core/src/java/org/apache/lucene/search/TopScoreDocCollector.java: ## @@ -32,31 +34,21 @@ public class TopScoreDocCollector extends TopDocsCollector { pr

Re: [PR] Move HitQueue in TopScoreDocCollector to a LongHeap [lucene]

2025-06-03 Thread via GitHub
jpountz commented on code in PR #14714: URL: https://github.com/apache/lucene/pull/14714#discussion_r2124848870 ## lucene/core/src/java/org/apache/lucene/search/TopScoreDocCollector.java: ## @@ -32,31 +34,21 @@ public class TopScoreDocCollector extends TopDocsCollector { p

Re: [PR] Move HitQueue in TopScoreDocCollector to a LongHeap [lucene]

2025-06-03 Thread via GitHub
jpountz commented on code in PR #14714: URL: https://github.com/apache/lucene/pull/14714#discussion_r2124821293 ## lucene/core/src/java/org/apache/lucene/search/TopScoreDocCollector.java: ## @@ -32,31 +34,21 @@ public class TopScoreDocCollector extends TopDocsCollector { p

Re: [PR] Move HitQueue in TopScoreDocCollector to a LongHeap [lucene]

2025-05-29 Thread via GitHub
gf2121 commented on code in PR #14714: URL: https://github.com/apache/lucene/pull/14714#discussion_r2113866926 ## lucene/core/src/java/org/apache/lucene/search/TopScoreDocCollector.java: ## @@ -73,23 +65,22 @@ public ScoreMode scoreMode() { public LeafCollector getLeafCollect

Re: [PR] Move HitQueue in TopScoreDocCollector to a LongHeap [lucene]

2025-05-29 Thread via GitHub
gf2121 commented on code in PR #14714: URL: https://github.com/apache/lucene/pull/14714#discussion_r2113858109 ## lucene/core/src/java/org/apache/lucene/search/DocScoreEncoder.java: ## @@ -0,0 +1,81 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more +

Re: [PR] Move HitQueue in TopScoreDocCollector to a LongHeap [lucene]

2025-05-28 Thread via GitHub
jpountz commented on code in PR #14714: URL: https://github.com/apache/lucene/pull/14714#discussion_r2111945886 ## lucene/core/src/java/org/apache/lucene/search/TopScoreDocCollector.java: ## @@ -73,23 +65,22 @@ public ScoreMode scoreMode() { public LeafCollector getLeafCollec

Re: [PR] Move HitQueue in TopScoreDocCollector to a LongHeap [lucene]

2025-05-27 Thread via GitHub
jpountz commented on PR #14714: URL: https://github.com/apache/lucene/pull/14714#issuecomment-2913896479 I wasn't aware of this indeed. OK for passing null then, I agree that there may be sub classes that rely on this API in the wild. -- This is an automated message from the Apache Git Se

Re: [PR] Move HitQueue in TopScoreDocCollector to a LongHeap [lucene]

2025-05-27 Thread via GitHub
gf2121 commented on PR #14714: URL: https://github.com/apache/lucene/pull/14714#issuecomment-2913036055 Thanks for the suggestion! > It's a bit ugly to pass null as a HitQueue in the constructor of TopScoreDocCollector. Can we only keep method signatures on TopDocsCollector and move

Re: [PR] Move HitQueue in TopScoreDocCollector to a LongHeap [lucene]

2025-05-26 Thread via GitHub
github-actions[bot] commented on PR #14714: URL: https://github.com/apache/lucene/pull/14714#issuecomment-2908907735 This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog-check label to it and you wil

[PR] Move HitQueue in TopScoreDocCollector to a LongHeap [lucene]

2025-05-26 Thread via GitHub
gf2121 opened a new pull request, #14714: URL: https://github.com/apache/lucene/pull/14714 This tries to encode `ScoreDoc#score` and `ScoreDoc#doc` to a comparable long and use a `LongHeap` instead of `HitQueue`. This seems to help apparently when i increase `topN = 1000` (https://github.c