aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2021-08-14 21:17:13 +0000
committerYury Norov <[email protected]>2022-01-15 16:47:31 +0000
commit15325b4f768f2b27b5765489eeab6ec0d6b5e902 (patch)
treef29491038480dcf4575c84207f8f7ad2557f21d6 /lib/test_overflow.c
parentlib: bitmap: add performance test for bitmap_print_to_pagebuf (diff)
downloadkernel-15325b4f768f2b27b5765489eeab6ec0d6b5e902.tar.gz
kernel-15325b4f768f2b27b5765489eeab6ec0d6b5e902.zip
vsprintf: rework bitmap_list_string
bitmap_list_string() is very ineffective when printing bitmaps with long ranges of set bits because it calls find_next_bit for each bit in the bitmap. We can do better by detecting ranges of set bits. In my environment, before/after is 943008/31008 ns. Signed-off-by: Yury Norov <[email protected]> Tested-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions