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

Optimized memory management in Automaton.Builder.finish()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.10
    • 5.0, 6.0
    • core/other
    • 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. finish.patch
          2 kB
          Markus Heiden
        2. Automaton.diff
          5 kB
          Markus Heiden

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: