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 2015/05/15 16:25:01 UTC

[jira] [Resolved] (UIMA-4393) Subiterators - avoid copying

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

Marshall Schor resolved UIMA-4393.
----------------------------------
    Resolution: Fixed

> Subiterators - avoid copying
> ----------------------------
>
>                 Key: UIMA-4393
>                 URL: https://issues.apache.org/jira/browse/UIMA-4393
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Core Java Framework
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>            Priority: Minor
>             Fix For: 2.7.1SDK
>
>
> The current subiterator implementation starts by copying into a list all the valid values of the iterator; it then iterates over this.
> Change this to avoid copying in many cases.  Do the copying (converting to a list form of only valid FSs, and the previous implementation did) only when required (to support moveTo(FS) with unambiguous, reverse movement with ambiguous,  moveToLast (for all styles).  After conversion, the iterator will work as in the previous implementation, including not supporting ConcurrentModificationException (CME) signalling; before conversion, CME is supported (this is a behavior change).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)