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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0SDK
    • Component/s: Core Java Framework
    • Labels:
      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.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development