diff options
author | edef <edef@unfathomable.blue> | 2022-05-02 21:09:10 +0000 |
---|---|---|
committer | edef <edef@unfathomable.blue> | 2022-05-02 21:09:10 +0000 |
commit | bab70406b61e731dd79b8a12ce35772d0f46226b (patch) | |
tree | e28995a539fe7a35056aa6c3c0e55eb03e2a2550 /fleet/nix | |
parent | 832099e432fd3d702681b3c1d852ae99b3bb7d2e (diff) | |
download | unf-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 'fleet/nix')
0 files changed, 0 insertions, 0 deletions