You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2020/11/11 02:02:05 UTC

[jira] [Closed] (GROOVY-9703) DefaultGroovyMethods.reverse(T[], true) performs extra copy

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

Paul King closed GROOVY-9703.
-----------------------------

> DefaultGroovyMethods.reverse(T[], true) performs extra copy
> -----------------------------------------------------------
>
>                 Key: GROOVY-9703
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9703
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Minor
>             Fix For: 4.0.0-alpha-1, 2.5.14, 3.0.6
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> {code:groovy}
> def array = new Object[] {1,2,3}
> array.reverse(true)
> {code}
> In-place reverse performs an extra (unnecessary) {{System.arraycopy(...)}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)