mirror of
https://github.com/octoleo/restic.git
synced 2025-02-06 22:08:29 +00:00
7a992fc794
Previously the buffer was grown incrementally inside `repo.LoadUnpacked`. But we can do better as we already know how large the index will be. Allocate a bit more memory to increase the chance that the buffer can be reused in the future.