2 ms·
It often also means it was written more correctly. There is a bit of an art to designing a header only library and it can strike a different balance between cod
by ddtaylor 8mo ago
It often also means it was written more correctly. There is a bit of an art to designing a header only library and it can strike a different balance between code size and runtime speed optimization.
In strict terms when you place implementation in a .c file you probably want that code to be shared when different things call it, and the compiler will "link" to that same implementation.
When you have a header only library the compiler is free to optimize in more ways specific to your actual use case.