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

Improve XmiCasDeserializer performance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.0SDK
    • 2.4.1SDK
    • Core Java Framework
    • None

    Description

      I profiled an expensive CAS deserialization and found that 46% of the time was in CASImpl.ll_getFSForRef (the method that creates a FeatureStructure Java object for a CAS FS). All those calls were coming from deserializing arrays (of which this particular CAS has many).

      It is unnecessary to create FeatureStructure Java objects here. For non-array FSs, XmiCasDeserializer uses low-level CAS APIs in order to avoid this overhead. But for arrays, it currently does not use the low-level APIs.

      Attachments

        1. UIMA-2385.bps.patch
          0.6 kB
          Benjamin Segal

        Issue Links

          Activity

            People

              schor Marshall Schor
              alally Adam P. Lally
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: