zhaih commented on code in PR #12050: URL: https://github.com/apache/lucene/pull/12050#discussion_r1061955216
########## lucene/core/src/java/org/apache/lucene/util/hnsw/OnHeapHnswGraph.java: ########## @@ -94,36 +93,83 @@ public int size() { } /** - * Add node on the given level + * Add node on the given level. Nodes can be inserted out of order, but it requires that the nodes Review Comment: Good point, for concatenation pattern it might be better to not use a naive BST, but still because in L156 we need to copy the rest of array again and again as long as that is a non-appending action, I think it still is better to use some tree-like structure, maybe RB tree or other balanced tree? But we can also leave it as a separate issue for now, because seems like it is another mid-big change and this one need not to be blocked by that I guess? -- 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