Skip to content

Conversation

@Meo597
Copy link
Collaborator

@Meo597 Meo597 commented Oct 31, 2025

  • 当 rule 有多种约束混一起时,应该先 apply 开销低的,可以降低 cpu 占用

    其实这里最好是做个隐式 order 字段以遵守配置文件顺序,供追求极限性能的赔钱机场高级用户使用

  • 删了一个废弃的函数


此 PR 和 #5289 冲突
如果两个全部接受,应该先合 #5289 我再 rebase 这个

此 PR rebase 后的 diff
https://github.com/Meo597/Xray-core/compare/perf-geoip-matcher..rebased-geoip-matcher/perf-route

@Meo597 Meo597 changed the title perf(router): Adjust the order of rules to optimize performance perf(router): adjust the order of rules to optimize performance Oct 31, 2025
@RPRX
Copy link
Member

RPRX commented Nov 21, 2025

@Meo597 rebase

为啥不放同一个 PR 里

@Meo597
Copy link
Collaborator Author

Meo597 commented Nov 21, 2025

rebase 好了

当时没发现 geoip 可以优化了省内存来着
先发现的可以调整顺序

@RPRX RPRX merged commit 2185a73 into XTLS:main Nov 21, 2025
39 checks passed
@Meo597 Meo597 deleted the perf-route branch November 21, 2025 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants