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] [Resolved] (UIMA-4393) Subiterators - avoid copying
Date Fri, 15 May 2015 14:25:01 GMT

     [ 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

View raw message