[llvm-bugs] [Bug 40533] New: std::minmax_element is 3 times slower than hand written loop

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 30 09:23:05 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40533

            Bug ID: 40533
           Summary: std::minmax_element is 3 times slower than hand
                    written loop
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: antoshkka at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

Moreover, std::minmax_element is slower than calling
std::min_element+std::max_element if there's a lot of data and it does not fit
into the CPU cache: http://quick-bench.com/tlgxCx9CUMZgOfYbwhFaEI0WNOg

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190130/795a7381/attachment.html>


More information about the llvm-bugs mailing list