How to reduce compilation times with Boost Asio

前端 未结 4 474
南旧
南旧 2021-01-14 09:14

Boost.Asio is great library but it has one huge drawback -- extreamly slow compilation times. A simple implementation (really simple) of HTTP protocol (about 1k lines of cod

4条回答
  •  耶瑟儿~
    2021-01-14 09:59

    We are using boost thread, asio and a few other libs, including Qt. Using precompiled headers carefully made a 10:1 improvement in build time. We referred to the following for guidance:

    http://www.cygnus-software.com/papers/precompiledheaders.html

    There are ways to do precomiled headers so that they don't creep into every file and Windowsify your code.

提交回复
热议问题