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] [Commented] (UIMA-2715) Add bulk-add method variant to IntVector
Date Tue, 05 Mar 2013 17:22:14 GMT

    [ https://issues.apache.org/jira/browse/UIMA-2715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13593612#comment-13593612
] 

Marshall Schor commented on UIMA-2715:
--------------------------------------

committed to branch uimaj/branches/filteredCompress-uima-2498 in r1452822
                
> 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