You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2013/04/10 16:56:16 UTC

[jira] [Closed] (UIMA-2715) Add bulk-add method variant to IntVector

     [ https://issues.apache.org/jira/browse/UIMA-2715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor closed UIMA-2715.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4.1SDK
    
> 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
>             Fix For: 2.4.1SDK
>
>
> 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