Re:C++ Headers are Expensive
by nanolith on Monday January 07, 2019 @10:54PM
(#18853001)
Sure, and I would never recommend that indirection be used all the time as that would be premature.
However, if compilation times have gotten painful enough that we need to examine performance improvements to our headers, the pImpl pattern is one of many tools in the toolbox. So are forward headers and other compiler firewall techniques.
However, if compilation times have gotten painful enough that we need to examine performance improvements to our headers, the pImpl pattern is one of many tools in the toolbox. So are forward headers and other compiler firewall techniques.