Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Link collection for the Compile C++ faster talk

This is a link collection for the talk I held at stockholm c++ meetup where I talked about how to compile c++ faster.

The slides can be found here: https://docs.google.com/presentation/d/e/2PACX-1vQnImhVyHCiZka4wRmnhISq7O8wl6wvf0zmja2HNsiBDF4l6xBL6fXwFXHjdEpIsvZkiRhNNQBXmNuP/pub?start=false&loop=false&delayms=3000

Our environment

Easy methods

Harder methods

Make Clang Faster!

Grab bag

  • -fvisibility=hidden - https://gcc.gnu.org/wiki/Visibility
  • -fexperimental-new-pass-mananger - This should be combined with the Make Clang Faster topic above. Not so experimental any more - google is using it by default for example.
  • distcc - distributed compiler
  • -ftime-trace get flame graphs for your own code!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.