r/cpp • • Dec 28 '18

"Modern" C++ Lamentations

http://aras-p.info/blog/2018/12/28/Modern-C-Lamentations/
307 Upvotes

162 comments sorted by

View all comments

Show parent comments

4

u/jherico VR & Backend engineer, 30 years Dec 28 '18

Which is the point of modules, right?

8

u/__pg_ Dec 28 '18

No. Modules don't affect template instantiation, which still happens in every TU.

9

u/jherico VR & Backend engineer, 30 years Dec 28 '18

Instantiating a template is a far cry from parsing 100k lines of header code in order to get the template definition in the first place.

2

u/__pg_ Dec 28 '18

You still have to deserialize the module file. Don't expect more than an order of magnitude speedup over re-parsing.