uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] [Created] (UIMA-2715) Add bulk-add method variant to IntVector
Date Tue, 05 Mar 2013 14:41:13 GMT
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

Mime
View raw message