[libcxx-commits] [PATCH] D73223: Splits copy constructor up inlining short initialization, outlining long initialization into __init_copy_ctor_external() which is the externally instantiated slow path.

Martijn Vels via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jan 22 13:10:05 PST 2020


mvels created this revision.
mvels added a reviewer: EricWF.
Herald added subscribers: libcxx-commits, christof.
Herald added a project: libc++.

Subsequently changing the copy ctor to be inlined (not externally instantiated) provides significant speed ups for short string initialization.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73223

Files:
  libcxx/include/string
  libcxx/test/std/strings/basic.string/string.cons/copy_shrunk_long.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73223.239681.patch
Type: text/x-patch
Size: 3758 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200122/69516211/attachment.bin>


More information about the libcxx-commits mailing list