Use compact_once_flag in DelayedInit only if size can be reduced
Summary: If `T` is greater than 4-byte aligned, then `compact_once_flag` brings no size improvements. We can use `once_flag` in these cases, which has a better mutex (`folly::SharedMutex` rather than `folly::MicroLock`). Reviewed By: yfeldblum Differential Revision: D26214262 fbshipit-source-id: ea15376ea892df42cc9d3a6eac3da458fe0564a8
Showing
Please register or sign in to comment