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

speed up lookup of JCas cover object from cache

    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

      One of the most frequent operations in UIMA user code is to iterate over all FSs of particular type (including subtypes) and do some operation. When using the JCas, the iteration's get() or next() (if JCas Caching is enabled, which is the default) will get the cached JCas cover object corresponding to that Feature Structure and return it.

      Look at speeding up this operation, since it's frequent.

        Activity

        Hide
        schor Marshall Schor added a comment -

        Speed up with both better iterators (minor part) and faster JCas cache lookup (major part) was 18% for simple while(x.hasNext())

        {x.next;}
        Show
        schor Marshall Schor added a comment - Speed up with both better iterators (minor part) and faster JCas cache lookup (major part) was 18% for simple while(x.hasNext()) {x.next;}
        Hide
        schor Marshall Schor added a comment -

        The speedup has a threading issue - it's sharing the initargs array among simultaneous users on different threads; change this to a threadlocal

        Show
        schor Marshall Schor added a comment - The speedup has a threading issue - it's sharing the initargs array among simultaneous users on different threads; change this to a threadlocal

          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