Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10391

Reuse data structures across HnswGraph invocations

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.1
    • None
    • New

    Description

      Creating HNSW graphs involves doing many repeated calls to HnswGraph#search. Profiles from nightly benchmarks suggest that allocating data-structures incurs both lots of heap allocations (http://people.apache.org/~mikemccand/lucenebench/2022.01.23.18.03.17.html#profiler_1kb_indexing_vectors_4_heap) and CPU usage (http://people.apache.org/~mikemccand/lucenebench/2022.01.23.18.03.17.html#profiler_1kb_indexing_vectors_4_cpu). It looks like reusing data structures across invocations would be a low-hanging fruit that could help save significant CPU?

      Attachments

        Issue Links

          Activity

            People

              julietibs Julie Tibshirani
              jpountz Adrien Grand
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m