3 ms·
Global variables are fastest, least memory intensive way to transfer state. If you need thread safety, atomic variables are still faster and more efficient than
by FrozenVoid 8y ago
Global variables are fastest, least memory intensive way to transfer state. If you need thread safety, atomic variables are still faster and more efficient than any alternative.
You can create pseudo-namespaces in C like Global_ and avoid name clashes too.