Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-28348

Optimize IF(a,IF(a,b,c),d) to IF(a,b,d)

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Not specified
    • Resolution: Fixed
    • None
    • 8.10.0
    • Code Generator
    • None

    Description

      Various guises this can occur in - often the result of nested attributes, each of which is checking if a condition is true.  Sometimes it may be possible to spot it in the optimizer.

      Is it ever worse to make that transformation?  I don't think so because you are never creating an extra compare - even if the inner IF is still referenced.

       

      Attachments

        Activity

          People

            ghalliday Gavin Halliday
            ghalliday Gavin Halliday
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: