Use static variable for frequent i18n() call.

Authored by dfaure on Sep 19 2019, 5:42 PM.

Description

Use static variable for frequent i18n() call.

Test Plan:
perf stat -r ./bench_parser heaptrack.david.18594.gz

Before: 160M cycles, 259M instructions, 43.58ms
After: 157M cycles, 252M instructions, 42.93ms

Reviewers: mwolff

Reviewed By: mwolff

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

Details

Committed
dfaureSep 20 2019, 4:23 PM
Reviewer
mwolff
Differential Revision
D24095: Use static variable for frequent i18n() call.
Parents
R45:aa201842987b: Add benchmark for Parser
Branches
Unknown
Tags
Unknown