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

Matteo Mortari (JIRA) issues at jboss.org
Mon Apr 10 06:11:00 EDT 2017


    [ https://issues.jboss.org/browse/DROOLS-1519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13391312#comment-13391312 ] 

Matteo Mortari commented on DROOLS-1519:
----------------------------------------

Some background [here|https://issues.jboss.org/browse/DROOLS-1404?focusedCommentId=13348231&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-13348231].

> (var == $v) is faster than ($v == var) and scales much better: can they both be that fast?
> ------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-1519
>                 URL: https://issues.jboss.org/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
>
> 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.2.3#72005)


More information about the jboss-jira mailing list