[Issue 15871] New: Implement SIMD-friendly set intersection

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Apr 4 08:00:03 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15871

          Issue ID: 15871
           Summary: Implement SIMD-friendly set intersection
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: dmitry.olsh at gmail.com

See the paper:
http://www.vldb.org/pvldb/vol8/p293-inoue.pdf
And related SIMD galloping:
http://boytsov.info/pubs/simdcompressionarxiv.pdf

Quoting the first paper:

Our algorithm is suitable to 
replace existing standard library functions, such as
std::set_intersection in C++, thus accelerating many applications,
because the algorithm is simple and requires no preprocessing to
generate additional data structures. We implemented our
algorithm on Xeon and POWER7+. The experimental results
show our algorithm outperforms the std::set_intersection
implementation delivered with gcc by up to 5.2x using SIMD
instructions and by up to 2.1x even without using SIMD
instructions for 32-bit and 64-bit integer datasets.

Worth looking into.

--


More information about the Digitalmars-d-bugs mailing list