Eric Milles created GROOVY-10618:
------------------------------------

             Summary: 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


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