|
|
От: |
LaptevVV
|
|
| Дата: | 03.09.25 05:18 | ||
| Оценка: | |||
Build System
How much compile time can C++20 Modules save?
Are C++20 Modules and PCH equivalent? What’s the difference?
Can C++20 Modules reduce code size? Why?
Can we use C++20 Modules for programming now?
But what’s the cost?
When to use C++20 Modules
Modules Wrapper
export-using style
extern “C++” style
Choose a specific suffix for your wrapped third-party libraries to avoid conflicts
One big thirdparty module
Use .cppm and other special suffixes as the filename suffix for importable module units
How do C++20 Modules reduce compile time?
Frontend and Compile-Time Computation
Mid-end and Back-end
Negative impacts of Modules on compile speed
Recompilation issues from modifying interface files
Other uses for Module Implementation Partition Units
Non-Cascading Changes
Try to avoid placing the same declaration in different TUs
Mixing import and #include
Impact of Modules on code size
Runtime issues encountered during module migration
Forward declaration issues in Modules
TODO?