Port changes from libnbd:
- Add vector benchmarks
- Add bench make target
- Optmize vector append
- Rename vector fields (size, alloc -> len, cap)
Nir Soffer (4):
common/utils/test-vector.c: Add vector benchmarks
common/urils/vector.c: Optimize vector append
common/utils/vector: Rename `alloc` to `cap`
common/utils/vector: Rename `size` to `len`
Makefile.am | 5 ++
README | 7 ++
common/allocators/allocator.c | 2 +-
common/allocators/malloc.c | 26 +++---
common/allocators/sparse.c | 6 +-
common/allocators/zstd.c | 6 +-
common/regions/regions.h | 6 +-
common/utils/Makefile.am | 3 +
common/utils/bench.h | 72 +++++++++++++++++
common/utils/environ.c | 2 +-
common/utils/test-vector.c | 57 +++++++++++++-
common/utils/vector.c | 14 +++-
common/utils/vector.h | 54 ++++++-------
filters/ddrescue/ddrescue.c | 2 +-
filters/exitwhen/exitwhen.c | 2 +-
filters/extentlist/extentlist.c | 14 ++--
filters/multi-conn/multi-conn.c | 16 ++--
plugins/cc/cc.c | 4 +-
plugins/data/data.c | 4 +-
plugins/data/format.c | 114 +++++++++++++--------------
plugins/eval/eval.c | 2 +-
plugins/floppy/directory-lfn.c | 24 +++---
plugins/floppy/floppy.c | 2 +-
plugins/floppy/virtual-floppy.c | 32 ++++----
plugins/iso/iso.c | 4 +-
plugins/nbd/nbd.c | 6 +-
plugins/partitioning/partition-mbr.c | 8 +-
plugins/partitioning/partitioning.c | 18 ++---
plugins/partitioning/virtual-disk.c | 12 +--
plugins/partitioning/virtual-disk.h | 2 +-
plugins/split/split.c | 14 ++--
plugins/ssh/ssh.c | 2 +-
plugins/vddk/reexec.c | 8 +-
plugins/vddk/stats.c | 4 +-
plugins/vddk/worker.c | 4 +-
server/exports.c | 6 +-
server/extents.c | 22 +++---
server/main.c | 2 +-
server/sockets.c | 8 +-
wrapper.c | 4 +-
40 files changed, 374 insertions(+), 226 deletions(-)
create mode 100644 common/utils/bench.h
--
2.31.1