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/08/29 06:55:00 UTC
[jira] [Commented] (GROOVY-9703) DefaultGroovyMethods.reverse(T[],
true) performs extra copy
[ https://issues.apache.org/jira/browse/GROOVY-9703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17186900#comment-17186900 ]
Paul King commented on GROOVY-9703:
-----------------------------------
Proposed PR applied. Thanks!
> 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
> Time Spent: 20m
> 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)