You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/10/24 00:10:00 UTC
[jira] [Comment Edited] (GROOVY-6954) map.foo = "bar" not optimized
by the static compiler
[ https://issues.apache.org/jira/browse/GROOVY-6954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17432738#comment-17432738 ]
Eric Milles edited comment on GROOVY-6954 at 10/24/21, 12:09 AM:
-----------------------------------------------------------------
https://github.com/apache/groovy/commit/da12804698e19fa68961e746c7eca3657dbc45f8
was (Author: emilles):
https://github.com/apache/groovy/pull/1646
> map.foo = "bar" not optimized by the static compiler
> ----------------------------------------------------
>
> Key: GROOVY-6954
> URL: https://issues.apache.org/jira/browse/GROOVY-6954
> Project: Groovy
> Issue Type: Improvement
> Components: Static compilation
> Affects Versions: 2.3.4
> Reporter: Cédric Champeau
> Assignee: Eric Milles
> Priority: Major
> Fix For: 4.0.0-beta-2
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> The following code, if statically compiled:
> {code}
> map.foo = 'bar'
> {code}
> produces a call to {{setProperty}} instead of going directly through {{map.put}}. It's worth noting that if not on LHS of an assignment, the operation is optimized to use {{get}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)