Using modular version of fmt gives ~20% compile time speedup even compared to minimal fmt/core.h
Падабаецца 0
Рэпосты 0
Using modular version of fmt gives ~20% compile time speedup even compared to minimal fmt/core.h
As it is supposed to.
20% is a bit on the low side, though, given all the template stuff you have.
@DanielaKEngert fmt/core.h is very lightweight
Aren't you speaking about entire {fmt}?
@vitaut
The key idea of modules is to precompile as much as you can:
- the implementation
- the intented API
- the accidental/unavoidable API 😮
- lots of name lookup
- lots of name resolution
- lots of template specializations and instantiations
Hence, make modules reasonably big.
@DanielaKEngert I mostly agree although there is nuance as sometimes precompilation can slow things down