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

Drools 8 docs : Add a warning regarding OOPath performance

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • docs
    • None
    • 2022 Week 26-28 (from Jun 27), 2022 Week 29-31 (from Jul 18), 2022 Week 32-34 (from Aug 8)
    • 1
    • NEW
    • NEW
    • ---
    • ---

      https://github.com/kiegroup/drools/pull/4495#issuecomment-1175252899

      > @tarilabs made me to remember that the (ab)use of oopath has some performance implications. More precisely the first oopath chunk is translated into a normal pattern matching, but all others after that first one are rendered with a from clause that in drools is quite inefficient. This is not a concern caused by oopath itself, because if you need to write a drl without oopath with the same semantic and behaviour you should use a from in the same way. However oopath's more concise grammar may invite to use this performance antipattern more frequently and almost unwillingly even when more efficient solutions could be easily available. I believe we should add a warning in our docs to explicitly clarify this aspect.

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: