Using modular version of fmt gives ~20% compile time speedup even compared to minimal fmt/core.h
Падабаецца 0
Рэпосты 0
So build speed is basically solved now.
Падабаецца 0
Рэпосты 0
As it is supposed to.
20% is a bit on the low side, though, given all the template stuff you have.
Падабаецца 0
Рэпосты 0
@DanielaKEngert fmt/core.h is very lightweight
Падабаецца 0
Рэпосты 0
Aren't you speaking about entire {fmt}?
Падабаецца 0
Рэпосты 0
@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.
Падабаецца 0
Рэпосты 0
@DanielaKEngert I mostly agree although there is nuance as sometimes precompilation can slow things down
Падабаецца 0
Рэпосты 0
@DanielaKEngert module includes everything but the benchmark compares against the core API which covers most of the usage
Падабаецца 0
Рэпосты 0
Antifascista)