zhaih commented on code in PR #12235:
URL: https://github.com/apache/lucene/pull/12235#discussion_r1174215308


##########
lucene/core/src/java/org/apache/lucene/util/hnsw/NeighborArray.java:
##########
@@ -29,16 +29,27 @@
  * @lucene.internal
  */
 public class NeighborArray {
+  static final int UNCHECKED_NODE_INIT_SIZE = 4;
   private final boolean scoresDescOrder;
   private int size;
 
   float[] score;
   int[] node;
+  final NeighborArray uncheckedNodes;
 
   public NeighborArray(int maxSize, boolean descOrder) {
+    this(maxSize, descOrder, false);
+  }
+
+  public NeighborArray(int maxSize, boolean descOrder, boolean 
tracUncheckedNodes) {

Review Comment:
   This should be gone with the lazy approach



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to