4 ms·
Since the library is distributed as an 8k long header file, doesn't compilation times explode?
by bjourne 4y ago
Since the library is distributed as an 8k long header file, doesn't compilation times explode?
- lifthrasiir 4y agoMost lines of j40.h are only enabled with `#define J40_IMPLEMENTATION`, which should be defined only once.
- bjourne 4y agoHm, yes, but it still 8k source and, afaik, it will be needlessly recompiled whenever the object file that includes it is modified.
- lifthrasiir 4y agoIncluding j40.h more than once does nothing. So it can only affect the preprocessing phase, but windows.h is multiple times larger than J40 (even after `#define WIN32_LEAN_AND_MEAN`) and if you can `#include <windows.h>` anywhere J40 can't be a real problem.