[ 
https://issues.apache.org/jira/browse/AMQ-8613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17580600#comment-17580600
 ] 

ASF subversion and git services commented on AMQ-8613:
------------------------------------------------------

Commit 7006570c1d7f1b7de19fd52e65e10de3d9773752 in activemq's branch 
refs/heads/main from Jean-Baptiste Onofré
[ https://gitbox.apache.org/repos/asf?p=activemq.git;h=7006570c1 ]

Merge pull request #842 from eolivelli/AMQ-8613

AMQ-8613 Improve performance of selectors with a big sequence of OR and AND 
logical expressions

> Improve performance of selectors with a big sequence of OR and AND logical 
> expressions
> --------------------------------------------------------------------------------------
>
>                 Key: AMQ-8613
>                 URL: https://issues.apache.org/jira/browse/AMQ-8613
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: JMS client
>    Affects Versions: 5.17.1
>            Reporter: Enrico Olivelli
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 5.18.0, 5.17.2
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Currently when you create a selector with OR and ANDs the filter creates a 
> huge stack trace.
> This is because for each element in the OR and AND expression node we have to 
> execute a method call.
> This is happening because OR and AND expressions are treated as 
> BinaryExpressions.
> A very simple but effecting improvement is to not represent OR and AND 
> expressions as binary expression but store the list of siblings expression in 
> only one node.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to