diff options
author | Christian König <christian.koenig@amd.com> | 2020-06-15 16:16:42 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-06-23 15:46:40 +0200 |
commit | 5fad79fd66ff90b8c0a95319dad0b099008f8347 (patch) | |
tree | 7fe0bd6de4f603aebf0693154d096d20da2dd46f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 271e7decd707accfe6d4965b2c5e60d2d77c8e35 (diff) |
drm/mm: cleanup and improve next_hole_*_addr()
Skipping just one branch of the tree is not the most
effective approach.
Instead use a macro to define the traversal functions and
sort out both branch sides.
This improves the performance of the unit tests by
a factor of more than 4.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Nirmoy Das <nirmoy.das@amd.com>
Link: https://patchwork.freedesktop.org/patch/370298/
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions