summary refs log tree commit diff
path: root/ripple/data
diff options
context:
space:
mode:
authoredef <edef@unfathomable.blue>2022-05-02 21:09:10 +0000
committeredef <edef@unfathomable.blue>2022-05-02 21:09:10 +0000
commitbab70406b61e731dd79b8a12ce35772d0f46226b (patch)
treee28995a539fe7a35056aa6c3c0e55eb03e2a2550 /ripple/data
parent832099e432fd3d702681b3c1d852ae99b3bb7d2e (diff)
downloadunf-legacy-bab70406b61e731dd79b8a12ce35772d0f46226b.tar.zst
ripple/fossil/chunker: iterate smarter
This drops the manual `len <= MIN_CHUNK_SIZE` check, and instead
combines it into acquiring the to-be-scanned chunk.

The pointer-based design doesn't need the iterator to be enumerated
from the start of the buffer, so we don't need to use take/skip.

Throughput improves about 5%.

Change-Id: Ic430c7afde68bf1acfba1a2137a0b8ac064176ea
Diffstat (limited to 'ripple/data')
0 files changed, 0 insertions, 0 deletions