-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: optimizing performance of router match with lrucache #8102
Conversation
and we should provide more information about the new performance before we merge this PR |
The following tests were done on my development machine. The number of workers is 1, disable access log, and disable the proxy-mirror and proxy-cache plugins, use one route master branch:
perf
In this scenario, performance is improved by 10.87% |
apisix/core/ai_plane.lua
Outdated
local route_flags = core.table.new(0, 2) | ||
for _, route in ipairs(routes) do | ||
if route.vars then | ||
route_flags.vars = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could simplify it with an enable_ai_plane
flag?
route_flags.vars = true | |
enable_ai_plane = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this case, enable_ai_plane
is not a good name
Description
Fixes # (issue)
Checklist