-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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(net/ghttp): Using assembly instead of reflection to call routing on the AMD64 platform #3682
base: master
Are you sure you want to change the base?
Conversation
@wln32 这块代码有点 |
@wln32 This code is a bit of a |
@gqcn 其实 关于这里使用unsafe以及汇编,算是我的一个验证吧,刚开始的时候我就一直在想能不能直接使用如下的方法签名来统一调用,以此消除反射的开销。 |
@gqcn In fact, the conversion of Regarding the use of unsafe and assembly here, it is my verification. At the beginning, I have been wondering whether I can directly use the following method signature to call uniformly, so as to eliminate the overhead of reflection. |
|
|
在amd64平台用汇编代替反射调用路由