[libcxx-commits] [PATCH] D63063: Bug 42208: speeding up std::merge

Eric Fiselier via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 13 22:00:30 PDT 2019


EricWF added a comment.

Binary size isn't



================
Comment at: benchmarks/algorithms.merge.bench.cpp:1
+#include <array>
+#include <string>
----------------
Missing license header.


================
Comment at: benchmarks/algorithms.merge.bench.cpp:87
+    auto Data = TestType::generateInput(Quantity);
+    using VecT = decltype(Data);
+
----------------
I know this doesn't affect the timing (or shouldn't), but it's useful to split out the prologue of a benchmark so it's easier to inspect the assembly the loop generates.

Also, if you could provide some snippits or analysis about what changed in the assembly that's giving the performance win.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63063/new/

https://reviews.llvm.org/D63063





More information about the libcxx-commits mailing list