Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-1366

Binary heap annotation iterator implementation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3
    • Core Java Framework
    • None

    Description

      The attached patch is a logarithmic complexity implementation of FSIndexRepositoryImpl.PointerIterator. The implementation maintains a binary heap of indexes and a short sorted section before the start of the heap to avoid spending more time than the old UIMA iterator when a couple of types completely dominate the heap.

      It offers small advantage when iterating over a small number of types and should be significantly faster for large numbers of types, as well as in situations where moveToNext() is not the only operation used on the iterator.

      Attachments

        1. BinaryHeapIteratorPatch.txt
          28 kB
          B Lambov (old handle)

        Issue Links

          Activity

            People

              twgoetz Thilo Goetz
              barnie B Lambov (old handle)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: