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

Optimized memory management in Automaton.Builder.finish()

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.10
    • Fix Version/s: 5.0, 6.0
    • Component/s: core/other
    • Labels:
    • Lucene Fields:
      New, Patch Available

      Description

      Reworked Automaton.Builder.finish() to not allocate memory stepwise. Added growTransitions(int numTransitions) to be able to resize the transistions array just once.

        Attachments

        1. Automaton.diff
          5 kB
          Markus Heiden
        2. finish.patch
          2 kB
          Markus Heiden

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              markus_heiden Markus Heiden
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: