shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

[Task] selector/rule uses tree query matching algorithm

Open loongs-zhang opened this issue 2 years ago • 3 comments

Description

I checked all the implementations of org.apache.shenyu.plugin.base.condition.judge.PredicateJudge, and now I only think of these two optimization points. If you have some better ideas, please leave a message below.

Task List

    • [ ] uses tree query matching algorithm in org.apache.shenyu.plugin.base.condition.judge.MatchPredicateJudge; @damonxue
    • [ ] use KMP in org.apache.shenyu.plugin.base.condition.judge.ContainsPredicateJudge; @dragon-zhang

Useful Information

https://github.com/npgall/concurrent-trees https://github.com/julienschmidt/httprouter https://github.com/viz-rs/path-tree https://github.com/Nugine/nuclear-router https://tech.meituan.com/2021/05/20/shepherd-api-gateway.html

loongs-zhang avatar Jun 09 '22 14:06 loongs-zhang

I'm interested in it,pls assign to me. After discussing with you, I will finish it.

damonxue avatar Jun 11 '22 14:06 damonxue

I'm interested in it,pls assign to me. After discussing with you, I will finish it.

ok, thanks, I will detail this task as soon as possible.

loongs-zhang avatar Jun 11 '22 15:06 loongs-zhang

U can find me in wechat group 'Apache Shenyu社区交流4群' by name 'Fibonacci'.

damonxue avatar Jun 13 '22 06:06 damonxue

see https://github.com/apache/shenyu/pull/4536

loongs-zhang avatar Apr 10 '23 06:04 loongs-zhang