]> git.hungrycats.org Git - bees/commit
hexdump: be a little more lock-friendly
authorZygo Blaxell <bees@furryterror.org>
Wed, 4 Dec 2024 04:37:48 +0000 (23:37 -0500)
committerZygo Blaxell <bees@furryterror.org>
Wed, 4 Dec 2024 04:39:33 +0000 (23:39 -0500)
commitcd7a71aba3de2c537a2f0f641c459c731dcecafd
tree01b40ec173b748a05161c016adccbc9347386960
parente99a505b3b155f75b735472878725789e4311461
hexdump: be a little more lock-friendly

hexdump processes a vector as a contiguous sequence of bytes, regardless
of V's value type, so hexdump should get a pointer and use uint8_t to
read the data.

Some vector types have a lock and some atomics in their operator[], so
let's avoid hammering those.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
include/crucible/hexdump.h