Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-10618

SC: further optimize cast to bool

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      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 call site / method handle. Also, the not expression can be optimized somewhat as well.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            emilles Eric Milles
            emilles Eric Milles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment