[PATCH][libstdc++-v3 parallel mode] Enable user-defined swap
Johannes Singler
singler@kit.edu
Mon Jan 24 17:08:00 GMT 2011
The following patch enables user-defined swap for parallel sorting and
the like, which can improve performance.
Tested x86_64-unknown-linux-gnu: No regressions
Pre-approved for mainline.
Also commit to gcc-4_5-branch?
2011-01-24 Johannes Singler <singler@kit.edu>
PR libstdc++/47433
* include/parallel/losertree.h
(_LoserTree<>::__delete_min_insert):
Do not qualify swap with std:: for value type,
but include a using directive instead.
(_LoserTreeUnguarded<>::__delete_min_insert): Likewise.
* include/parallel/balanced_quicksort.h (__qsb_divide):
Use std::iter_swap instead of std::swap.
(__qsb_local_sort_with_helping): Likewise.
* include/parallel/partition.h (__parallel_partition):
Likewise. (__parallel_nth_element): Likewise.
Johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swap_not_explicitly.patch
Type: text/x-patch
Size: 4731 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20110124/25135438/attachment.bin>
More information about the Libstdc++
mailing list