Reduce excessive synch lock contention caused by calss to ll_isValidTypeCode 
that are not needed
------------------------------------------------------------------------------------------------

                 Key: UIMA-500
                 URL: https://issues.apache.org/jira/browse/UIMA-500
             Project: UIMA
          Issue Type: Improvement
    Affects Versions: 2.1
            Reporter: Marshall Schor
            Assignee: Marshall Schor
             Fix For: 2.2


User reports slowdown as the number of threads are increased; traced to lock 
contention in Vector.get() method; call trace is:
XmiCasSerializer$XmiCasDocSerializer.<many places>
CASImpl.ll_getTypeClass(int)
TypeSystemImpl.subsumes(int, int)
TypeSystemImpl.ll_subsumes(int, int)
TypeSystemImpl.ll_isArrayType(int)
TypeSystemImpl.ll_isValidTypeCode(int)    <<< Not needed
SymbolTable.getSymbol(int)
Vector.get(int)

The callers of ll_isValidTypeCode include this caller and another 
(ll_getStringSet), where the call can be omitted without affecting the returned 
value.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to