aengelke wrote: memset in resize should already be optimized by the compiler (https://godbolt.org/z/5hbzqMarq). Likewise, if constexpr shouldn't affect the generated code in optimized builds. How exactly does this improve performance? https://github.com/llvm/llvm-project/pull/169291