Yes there is.
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.