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

SC: further optimize cast to bool

    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

            People

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

              Dates

                Created:
                Updated:
                Resolved: