Add an ID to Symbol in order to make hashing faster

Authored by dfaure on Sep 20 2019, 4:25 PM.

Description

Add an ID to Symbol in order to make hashing faster

Summary:
Before: 157M cycles, 252M instructions, 42.93 ms
After: 136M cycles, 165M instructions, 38.34 ms

Test Plan:
perf stat -r ./bench_parser heaptrack.david.18594.gz
It still shows "365 entries, 2896 allocations"
as before (unlike whenever I introduced bugs, so this is a useful check)

Reviewers: mwolff

Reviewed By: mwolff

Differential Revision: https://phabricator.kde.org/D24099

Details

Committed
dfaureOct 3 2019, 8:19 AM
Reviewer
mwolff
Differential Revision
D24099: Add an ID to Symbol in order to make hashing faster
Parents
R45:b2371b6bcafc: Replace std::tie with == in operator==()
Branches
Unknown
Tags
Unknown