Files
scylladb/service
Avi Kivity 595f1fe802 storage_proxy: digest_read_resolver: use small_vector for holding digests
There is typically just 1-2 digests per query, so we can allocate
space for them in digest_read_resolver using small_vector, saving
an allocation.

Results: (perf_simple_query --smp 1 --operations-per-shard 1000000 --task-quota-ms 10)
    before: median 215301.75 tps ( 75.1 allocs/op,  12.1 tasks/op,   45238 insns/op)
    after:  median 221121.37 tps ( 74.1 allocs/op,  12.1 tasks/op,   45186 insns/op)

While the throughput numbers are not reliable due to frequency throttling,
it's clear there are fewer allocations and instuctions executed.

Closes #9296
2021-09-09 10:24:39 +03:00
..