Comment

Comment by rewmie

The article mentions forward declararions but does not mention the age-old pimpl idiom.

https://en.cppreference.com/w/cpp/language/pimpl

Pimpl greatly reduce build times by removing includes from the interface header at the expense of requiring pointer dereferencing, and it's a tried and true technique.

Another old school technique which still has some impact in build times is to stash build artifacts in RAM drives.

parent rewmie 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton