uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thilo Goetz <twgo...@gmx.de>
Subject Re: Why XmiCasSerializer is slow
Date Wed, 11 Jul 2007 14:55:00 GMT
Adam Lally wrote:
> Very Interesting...
> Vectors are internally synchronized.  All the CASes in the CAS Pool
> share the same instance of the TypeSystemImpl, so they will all
> synchronize when calling ll_isValidTypeCode().  I wonder if switching
> the Vector to an ArrayList would help.  (Thilo, would that be safe?
> If set() is itself synchronized, and if nothing else modifies the
> table, then it seems like it would be.

Looking at the code, I think it should be safe.  Believe it or not,
this code is actually from a time when there were no ArrayLists, it's
that old :-)


View raw message