mirror of
https://github.com/restic/restic.git
synced 2025-12-03 22:21:47 +00:00
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.