[Bug libstdc++/89121] std::min_element (and max_element) 3.6 times slower than hand written loop

2019-01-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89121 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/89121] std::min_element (and max_element) 3.6 times slower than hand written loop

2019-01-30 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89121 --- Comment #2 from Marc Glisse --- If you write: auto mins = *std::min_element(f.begin(), f.end()); so that you ask for the value, the benchmark now says the perf is exactly the same for the 2 versions. I would close this as invalid.

[Bug libstdc++/89121] std::min_element (and max_element) 3.6 times slower than hand written loop

2019-01-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89121 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1