-
Notifications
You must be signed in to change notification settings - Fork 106
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
how to compile with nginx? #644
Comments
I haven't tried, but I would start by adding the .a but built with An alternative would be to add to the build, and enable LTO. If it is a C++ project, then you might want to override instead of the Please, let us know how you get on. |
Could you try make patch for nginx And we could point snmalloc sources at configure level to solve this |
I suggest you benchmark with LD_PRELOAD, and if that demonstrates that there is a win in using snmalloc. Removing the PLT indirection will improve performance, but if the different allocators you try are all going via a PLT indirection then it should be a relatively fair comparison to then decide if you want to do additional work to remove the PLT indirection. |
Snmalloc will be nice . I know that very well |
So I quickly tried the IPO option it seems to work, but doesn't give any inline above using the .a in the application I used.
will build
which you can add to your build like
But I don't see any advantage in the disassembly over not using IPO. |
I want compile with nginx source, but not with .so or .a file i want compile buildin directly in nginx source to get maximum performance.
I dont want configure --with-ld-opt="-lsnmalloc"
I want directly embedded inside nginx compile toolchain.
How i can do this?
Thanks and
best regards
The text was updated successfully, but these errors were encountered: