Marshall Schor created UIMA-2715:
------------------------------------
Summary: Add bulk-add method variant to IntVector
Key: UIMA-2715
URL: https://issues.apache.org/jira/browse/UIMA-2715
Project: UIMA
Issue Type: Improvement
Components: Core Java Framework
Reporter: Marshall Schor
Assignee: Marshall Schor
Priority: Trivial
There are several places where an array of ints gets added to an int vector, by
iterating over the array, and calling the add(int) method. This can be
improved by having a bulk add operation that does various growing/bounds check
just once, and then does the copy using System.arraycopy. This has a
measurable effect (not too much, but observable) on things such as CAS
serialization.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira