]> Untitled Git - bdk/commit
feat(file_store)!: optimize `EntryIter` by reducing syscalls
author志宇 <hello@evanlinjin.me>
Sun, 7 Jan 2024 08:09:03 +0000 (16:09 +0800)
committer志宇 <hello@evanlinjin.me>
Sat, 13 Jan 2024 08:07:43 +0000 (16:07 +0800)
commita3aa8b6682a3a13958fd5fbadc4074a1907a78db
treec4b81ba02a145400c3bf0ed28c9b9ffac037658c
parentcd602430ee5a16051e672daf52218fc541b5af2d
feat(file_store)!: optimize `EntryIter` by reducing syscalls

* Wrap file reader with `BufReader`. This reduces calls to `read`.
* Wrap file reader with `CountingReader`. This counts the bytes read by
  the underlying reader. We can rewind without seeking first.
crates/file_store/src/entry_iter.rs