diff options
author | Thomas Zimmermann <[email protected]> | 2022-02-23 20:38:03 +0100 |
---|---|---|
committer | Thomas Zimmermann <[email protected]> | 2022-03-02 20:22:33 +0100 |
commit | 0d03011894d23241db1a1cad5c12aede60897d5e (patch) | |
tree | 5730baad2f6dd3c954e923837ffe731f6135f3ba /tools/perf/scripts/python/compaction-times.py | |
parent | 3c54c95bd917d43d12fe1b192df9aa4c5973449b (diff) |
fbdev: Improve performance of cfb_imageblit()
Improve the performance of cfb_imageblit() by manually unrolling
the inner blitting loop and moving some invariants out. The compiler
failed to do this automatically. This change keeps cfb_imageblit()
in sync with sys_imagebit().
A microbenchmark measures the average number of CPU cycles
for cfb_imageblit() after a stabilizing period of a few minutes
(i7-4790, FullHD, simpledrm, kernel with debugging).
cfb_imageblit(), new: 15724 cycles
cfb_imageblit(): old: 30566 cycles
In the optimized case, cfb_imageblit() is now ~2x faster than before.
v3:
* fix commit description (Pekka)
Signed-off-by: Thomas Zimmermann <[email protected]>
Reviewed-by: Javier Martinez Canillas <[email protected]>
Acked-by: Sam Ravnborg <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions