3 ms·
There isn't as big of a boost as you'd think, since for a templated function you have to #include the entire definition of said function in whatever source file
by jjmarr 2y ago
There isn't as big of a boost as you'd think, since for a templated function you have to #include the entire definition of said function in whatever source file is using it.
- v1ne 2y agoYup, which is why a project that is serious about compilation time splits off type-independent parts into .cpp files that can be compiled separately, improving the speed of compilation for users of that template. I consider being a header-only "library" a code smell. It's purely for convenience, at the cost of compilation speed.