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

Eric Milles resolved GROOVY-10618.
----------------------------------
    Fix Version/s: 5.0.0-alpha-1
       Resolution: Fixed

https://github.com/apache/groovy/commit/38f73d7b78192a460d27356a65fe758a29ef5648

> SC: further optimize cast to bool
> ---------------------------------
>
>                 Key: GROOVY-10618
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10618
>             Project: Groovy
>          Issue Type: Improvement
>          Components: Static compilation
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Minor
>             Fix For: 5.0.0-alpha-1
>
>
> Implicit boolean conversion is currently handled by invokedynamic cast (see 
> CastSelector) unless the source type is primitive, Boolean or an effectively 
> final class.  The case for null can be handled without the need for a method 
> handle and cached call site.  Also, the not expression can be optimized 
> somewhat as well.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to