diff options
author | 2025-05-11 11:31:33 -0700 | |
---|---|---|
committer | 2025-05-22 09:12:27 +0200 | |
commit | b6ccde39b1c1292ad4442e9410e2c4c2510fe759 (patch) | |
tree | 1ccd0f647b5343f1ca031de60ab1ba0cef000bc3 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | gfs2: Do not call iomap_zero_range beyond eof (diff) | |
download | wireguard-linux-b6ccde39b1c1292ad4442e9410e2c4c2510fe759.tar.xz wireguard-linux-b6ccde39b1c1292ad4442e9410e2c4c2510fe759.zip |
gfs2: avoid inefficient use of crc32_le_shift()
__get_log_header() was using crc32_le_shift() to update a CRC with four
zero bytes. However, this is about 5x slower than just CRC'ing four
zero bytes in the normal way. Just do that instead.
(We could instead make crc32_le_shift() faster on short lengths. But
all its callers do just fine without it, so I'd like to just remove it.)
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions