Engineers at Figma faced a common issue with slow C++ build times, leading to frustration and decreased productivity. After failing with stopgap solutions and even creating a channel to joke about the problem, they developed innovative tools to tackle unnecessary header file inclusions, such as DIWYDU and includes.py. By automating the process of detecting and preventing regressions, implementing Fwd.h files, and exploring caching solutions, Figma managed to cut build times in half and avoid 50-100 slowdowns daily. This multifaceted approach significantly optimized build times and developer productivity, showcasing the team’s creative problem-solving skills.
https://www.figma.com/blog/speeding-up-build-times/