Skip to content

moving to C++11 and beyond? #12

@psteinb

Description

@psteinb

I just replaced all the use of std::pair with using std::tuple and got a 30% speed improvement on insert calls:

--------------------------------------------------------------
Benchmark                       Time           CPU Iterations
--------------------------------------------------------------
BM_insert/100             4009190 ns    3993675 ns        175
BM_insert/200            14098351 ns   14066840 ns         50
BM_insert/500            79044530 ns   78869829 ns          9
BM_insert_improved/100    5105467 ns    5094695 ns        138
BM_insert_improved/200   18299317 ns   18259001 ns         38
BM_insert_improved/500  105163774 ns  104951121 ns          7

@DNCrane are you interested in such improvements and hence interested in moving to a more recent standard?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions