Ask HN: High Performing Open Source Code Compilation
Is there a need for better compiled open source code ? Developers typically pull binaries from repo's that are not necessarily compiled with best optimization flags. Assuming a better compiled version can boost performance, would there be users for such a repo ?
10 comments
[ 3.3 ms ] story [ 32.1 ms ] threadSo, you would have to provide binaries for every CPU variant.
Worse, those users might also want to mix and match. For example, if they have a small SSD, they may want to optimize infrequently used tools for size, not speed, and they might want to optimize others for start up speed or security (you may want your web server to have all kinds of protections against attacks, even if that makes it slower)
=> in practice, it’s easier to let those few users who care about this build their own software.
It's not about compilation but currently I try to use a http server written in assembly (https://2ton.com.au/rwasa/)
If you can show some improvements with compilation switches (for example: -lto=8 with static linking), you'll get the attention of those who try to reduce the costs and increase the performances.