diff options
| author | Léo Lam <leo@leolam.fr> | 2021-01-01 19:08:49 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-01-01 19:10:46 +0100 |
| commit | 117e6891b02a9487488ead012fc6216a40316c44 (patch) | |
| tree | 61236fd904f40641d15becb43c2eaa6eb89d2c9f /src/KingSystem/Utils/Thread/MessageTransceiverBase.cpp | |
| parent | cb33d236a3286ef5660a712b4b065d413e41f21f (diff) | |
Reduce code size by avoiding static inline member variables
Static inline member variables require the compiler to emit a static
runtime constructor in all translation units that can see the variables
in question. This normally wouldn't be a problem, but it gets expensive
really quickly when you have ~3000 classes and ~3000 duplicate
static constructors.
This drops the ELF size from ~270MB to ~220MB and probably speeds up
builds a little bit.
Diffstat (limited to 'src/KingSystem/Utils/Thread/MessageTransceiverBase.cpp')
0 files changed, 0 insertions, 0 deletions
