Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1519

(var == $v) is faster than ($v == var) and scales much better: can they both be that fast?

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • Critical
    • 7.35.0.Final
    • 6.5.0.Final
    • core engine
    • None
    • NEW
    • NEW

    Description

      See:
      http://stackoverflow.com/questions/43282665/why-does-the-order-of-how-we-specify-the-variables-in-a-comparison-matter

      The ($v == var) filters much later causing a scaling loss.
      Investigate if drools can avoid that problem and make the slow one as fast as the fast one.

      We don't want to have to rewrite all our rules to take advantage of this speedup and educate all our users to prefer one way over another, if and only if we can avoid it.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tkobayas Toshiya Kobayashi
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: