[Bug libstdc++/67085] priority queue should not copy comparators when calling push_heap and pop_heap
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 19 23:08:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67085
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |7.0
--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The total sum of copies + moves is now lower, so even types without move
semantics will benefit:
Printing counts of numbers of calls to comparator copy + move constructors.
Before queue construction: 0 + 0
After queue construction : 1 + 2
After 3 calls to push : 4 + 8
After 3 calls to pop : 9 + 14
More information about the Gcc-bugs
mailing list