mikemccand commented on issue #15079:
URL: https://github.com/apache/lucene/issues/15079#issuecomment-3196469034

   The 08/06 run with the huge slowdown shows this odd stack frame in [the 
allocation 
profile](https://benchmarks.mikemccandless.com/2025.08.06.18.04.40.html#profiler_1kb_indexing_vectors_12_heap):
   
   ```
   3.04%         5193M         
java.lang.invoke.DirectMethodHandle#allocateInstance() [Inlined code]
                                 at 
java.lang.invoke.DirectMethodHandle$Holder#newInvokeSpecial() [Inlined code]
                                 at 
java.lang.invoke.Invokers$Holder#linkToTargetMethod() [Inlined code]
                                 at 
org.apache.lucene.store.MemorySegmentIndexInput#readGroupVInt() [Inlined code]
                                 at 
org.apache.lucene.util.GroupVIntUtil#readGroupVInts() [Inlined code]
                                 at 
org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsReader$OffHeapHnswGraph#seek()
 [JIT compiled code]
                                 at 
org.apache.lucene.util.hnsw.UpdateGraphsUtils#computeJoinSet() [JIT compiled 
code]
                                 at 
org.apache.lucene.util.hnsw.MergingHnswGraphBuilder#updateGraph() [JIT compiled 
code]
                                 at 
org.apache.lucene.util.hnsw.MergingHnswGraphBuilder#build() [Interpreted code]
                                 at 
org.apache.lucene.util.hnsw.IncrementalHnswGraphMerger#merge() [Interpreted 
code]
                                 at 
org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsWriter#mergeOneField() 
[Interpreted code]
                                 at 
org.apache.lucene.codecs.perfield.PerFieldKnnVectorsFormat$FieldsWriter#mergeOneField()
 [Interpreted code]
   ```
   
   What is this `Holder#linkToTargetMethod()` and 
`DirectMethodHandle$Holder#newInvokeSpecial` under `readGroupVInts`?  Why are 
we allocating method handles when invoking this low level method ...


-- 
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