4 ms·
Generally it is better to have a context with a well defined lifetime rather than the other two options. Additionally thread safety puts very stringent require
by AstralStorm 8y ago
Generally it is better to have a context with a well defined lifetime rather than the other two options.
Additionally thread safety puts very stringent requirements on global state, further making singletons and language goals worthless with few exceptions.