Perf: inline lookup, cache location of the Meyer's singleton
Summary:
With this change the setting lookup is now inlined at each callsite as:
```
if (UNLIKELY(global_setting_ptr == 0)) {
global_setting_ptr = &initialize_setting(); // OK to race
}
// use *global_setting_ptr
```
Differential Revision: D9981958
fbshipit-source-id: a04b296d8345d1bb37dc06ce72277e00e745a94a
Showing
Please register or sign in to comment