Speeding up C++ build times

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • ClangBuildAnalyzer

    Clang build analysis tool using -ftime-trace

    Coincidentally in the project I'm currently working I managed to reduce our compile times significantly (~35% faster) using ClangBuildAnalyzer [1]. The main two things that helped were precompiled headers and explicit template instantiations.

    Unfortunately, the project still remains heavy because of our use of Eigen throughout the entire codebase. The analysis with Clang's "-ftime-trace" show that 75-80% of the compilation time is spent in the optimisation stage, but not really sure what do to about that.

    [1] https://github.com/aras-p/ClangBuildAnalyzer

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • sccache

    Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.

    Use icecream or sccache. sccache supports distributed builds.

    https://github.com/mozilla/sccache/blob/main/docs/Distribute...

  • clangd

    clangd language server

    I'm still waiting for clangd support, e.g. [0] before trying modules.

    - [0] https://github.com/clangd/clangd/issues/1293

  • infinity

    The AI-native database built for LLM applications, providing incredibly fast hybrid search of dense vector, sparse vector, tensor (multi-vector), and full-text

    Using C++20 modules, take a look at this project: https://github.com/infiniflow/infinity

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Configure clangd in eglot to not add headers?

    1 project | /r/emacs | 9 Dec 2023
  • A little help for a C++ newbie

    1 project | /r/cpp_questions | 4 Oct 2023
  • #include Cleanup Available in Visual Studio 2022 17.7 Preview 3

    1 project | /r/cpp | 13 Jul 2023
  • How to set up C++ in sublime text?

    1 project | /r/cpp | 3 Jul 2023
  • Guide for starting out C and C++ Programming in Visual Studio Code

    1 project | dev.to | 2 Jul 2023

Did you konow that C++ is
the 6th most popular programming language
based on number of metions?