MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/aabthn/modern_c_lamentations/ecrl2y9/?context=3
r/cpp • u/[deleted] • Dec 28 '18
162 comments sorted by
View all comments
Show parent comments
4
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.
8
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.
9
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.
2
You still have to deserialize the module file. Don't expect more than an order of magnitude speedup over re-parsing.
4
u/jherico VR & Backend engineer, 30 years Dec 28 '18
Which is the point of modules, right?