[all-commits] [llvm/llvm-project] c3478e: [libc++] reduce <complex> parsing time

Louis Dionne via All-commits all-commits at lists.llvm.org
Wed Feb 19 13:11:20 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c3478eff7a65d6a77b34e756eabc7176a2b422e8
      https://github.com/llvm/llvm-project/commit/c3478eff7a65d6a77b34e756eabc7176a2b422e8
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-02-19 (Wed, 19 Feb 2020)

  Changed paths:
    M libcxx/include/complex

  Log Message:
  -----------
  [libc++] reduce <complex> parsing time

Instead of including <ios> for ios_base::failbit, simply get failbit
member of the template argument. Print directly to a stream instead
of using intermediate ostringstream.

    Parsing time: 874ms -> 164ms (-81%)

Thanks to Nikita Kniazev for the patch!

Differential Revision: https://reviews.llvm.org/D71214




More information about the All-commits mailing list