#include on a Diet

By Gabriel Diaconita

C++ modules are the future but, for now, we still have to deal with #include directives - a lot of them…​

This directive continues to play an essential role in bringing essential components into our C++ code. As our project grows, so does the risk of #include bloat; they are easy to add but hard to remove, why so? must it be?

In this talk, we’ll examine a simple yet effective strategy for jettisoning #includes from your projects; we will showcase real-world data, identify common pitfalls & gotchas, and explore the impact of #include optimizations on build times and codebase maintainability. One will be surprised at how many thousands superfluous inclusions there are in a mature million-LOC codebase.





Your Privacy

By clicking "Accept Non-Essential Cookies" you agree ACCU can store non-essential cookies on your device and disclose information in accordance with our Privacy Policy and Cookie Policy.

Current Setting: Non-Essential Cookies REJECTED


By clicking "Include Third Party Content" you agree ACCU can forward your IP address to third-party sites (such as YouTube) to enhance the information presented on this site, and that third-party sites may store cookies on your device.

Current Setting: Third Party Content EXCLUDED



Settings can be changed at any time from the Cookie Policy page.