[libcxx-commits] [PATCH] D65667: [libcxx] Avoid destructor call for error_category singletons
Hubert Tong via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 23 12:01:42 PDT 2019
hubert.reinterpretcast added a comment.
In D65667#1643305 <https://reviews.llvm.org/D65667#1643305>, @EricWF wrote:
> That doesn't need to happen now. But I want to see these changed to be global statics not function local. At least that way we omit the guards entirely. and accessing the variable becomes a single instruction.
This goes back to the "paying for something you don't use" with regards to the up-front library loading cost. If people are actually agreed on this course of action, then we can create that version of the patch, but it does not seem clear to me.
CHANGES SINCE LAST ACTION
More information about the libcxx-commits