diff options
author | Yury Norov <yury.norov@gmail.com> | 2021-08-15 00:17:13 +0300 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-01-15 19:47:31 +0300 |
commit | 15325b4f768f2b27b5765489eeab6ec0d6b5e902 (patch) | |
tree | f29491038480dcf4575c84207f8f7ad2557f21d6 /arch/arc | |
parent | db7313005e9c2d4e80888dd18d4a83926b920e8c (diff) | |
download | linux-15325b4f768f2b27b5765489eeab6ec0d6b5e902.tar.xz |
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 <yury.norov@gmail.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'arch/arc')
0 files changed, 0 insertions, 0 deletions