Skip to content

Instantly share code, notes, and snippets.

@tru
Created January 28, 2020 08:24
Show Gist options
  • Save tru/ad677ba2b1d543e238b0e09eb3aad3ac to your computer and use it in GitHub Desktop.
Save tru/ad677ba2b1d543e238b0e09eb3aad3ac to your computer and use it in GitHub Desktop.
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