Marshall Schor created UIMA-4701:
------------------------------------

             Summary: Creating CASs with common CAS Definition should share 
type systems
                 Key: UIMA-4701
                 URL: https://issues.apache.org/jira/browse/UIMA-4701
             Project: UIMA
          Issue Type: Improvement
          Components: Core Java Framework
            Reporter: Marshall Schor
            Assignee: Marshall Schor
            Priority: Minor
             Fix For: 3.0.0SDKexp


Cas Definitions can be captured in the class CasDefinition and passed to the 
CasCreationUtils createCas methods.  This is done, for instance, when CAS Pools 
are created.  

The processing currently holds the definitions as description-objects, and 
re-parses these into type system implementations, every time a cas is produced. 
 These multiple type systems are identical, but replicated, which is wasteful.

Change the definition of CasDefinition to permit it to hold the derived 
TypeSystemImpl object, and change createCas to use that if available, to share 
common TypeSystemImplementations.

Other approaches that result in even more instances of type system sharing 
might be considered, but it's possible that different instances may be wanted 
in some cases in the future (for example, if we allow dynamic augmentation of 
types / features while running).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to