aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorTvrtko Ursulin <[email protected]>2016-10-04 09:29:21 +0100
committerTvrtko Ursulin <[email protected]>2016-10-04 11:09:59 +0100
commit91e630b9e636954708e933015e7f02f8bcd8b320 (patch)
tree74768d392f61452f913ca529bb4153f1d641bab7 /tools/perf/scripts/python/event_analyzing_sample.py
parentb008123966a45bfda9ef71d35a0b76957d639291 (diff)
drm/i915: Use binary search when looking up forcewake domains
Instead of the existing linear seach, now that we have sorted range tables, we can do a binary search on them for some potential miniscule performance gain, but more importantly for elegance and code size. Hopefully the perfomance gain is sufficient to offset the function calls which were not there before. v2: Removed const cast away. Signed-off-by: Tvrtko Ursulin <[email protected]> Reviewed-by: Chris Wilson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions