[jboss-jira] [JBoss JIRA] (DROOLS-1519) (var == $v) is faster than ($v == var) and scales much better: can they both be that fast?

Toshiya Kobayashi (Jira) issues at jboss.org
Mon May 25 01:33:10 EDT 2020


     [ https://issues.redhat.com/browse/DROOLS-1519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Toshiya Kobayashi resolved DROOLS-1519.
---------------------------------------
    Fix Version/s: 7.35.0.Final
       Resolution: Done


> (var == $v) is faster than ($v == var) and scales much better: can they both be that fast?
> ------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-1519
>                 URL: https://issues.redhat.com/browse/DROOLS-1519
>             Project: Drools
>          Issue Type: Enhancement
>          Components: core engine
>    Affects Versions: 6.5.0.Final
>            Reporter: Geoffrey De Smet
>            Assignee: Mario Fusco
>            Priority: Critical
>             Fix For: 7.35.0.Final
>
>
> 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.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list