summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-12-22 09:16:18 +0000
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-01-08 12:16:22 +0000
commitd5e51a60e5cbb807bcacd2655bd4ffe90a686bbb (patch)
treea3c8af88f1d0791e61faba91b99d6386927f142b /COPYING
parent472ecd3b2e24bd07128c0a42609a2940c8fd07ed (diff)
scripts/trace.pl: Optimize event parsing and processing
A couple of small optimizations which altogether bring around 30% improvement in my testing. 1. Do less string processing on tracepoints names and push more of the check into the if-ladder. 2. Pull out common db key and ctx processing and cache common values in local vars. 3. Key value pair parsing is faster with a regexp. 4. Avoid sorting the db hash multiple times if possible. v2: * Use faster key-value splitting method. (John Harrison) v3: * Fix floating-point to int time conversion. v4: * Fix refactoring and logic fails. (John Harrison) Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: John Harrison <John.C.Harrison@intel.com> Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions