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

use bulk operations, avoid sort/dedup in serialization of indexed FS

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.7.0SDK
    • Core Java Framework
    • None

    Description

      The various serialization methods which start from the indexed types call the getIndexedFSs to get the indexes for 1 view. This method does extra array creation and sorting / deduping, not needed if there's a guarantee of no duplicates. This is now possible due to the change to add default bag indices (no need to merge "set" indices), and if allow_duplicate_add_to_indices is not specified. Eliminate this extra overhead in that case, and also use "bulk" methods where possible that avoid iterating and use things like System.arraycopy to accumulate the results.

      Attachments

        Activity

          People

            schor Marshall Schor
            schor Marshall Schor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: