[PATCH][libstdc++-v3 parallel mode] Improve find algorithm

Johannes Singler singler@kit.edu
Tue Jun 8 14:07:00 GMT 2010


This patch improves the parallel find algorithm by making the block size
proportional to the current start position, which gives nice theoretical
performance guarantees and better performance in practice.

Tested x86_64-unknown-linux-gnu: No regressions

Please approve for mainline.

2010-06-08  Johannes Singler  <singler@kit.edu>

        * include/parallel/find.h
        (__find_template(.., growing_blocks_tag)): Make block size
        proportional to current position.
        * include/parallel/settings.h (_Settings): Introduce new tuning
        parameter find_scale_factor to the end of the struct, default to
        0.01.

Johannes


-------------- next part --------------
A non-text attachment was scrubbed...
Name: find_scale_factor_4_6.patch
Type: text/x-patch
Size: 2926 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100608/c2fc243c/attachment.bin>


More information about the Gcc-patches mailing list