mirror of
https://github.com/restic/restic.git
synced 2025-03-13 09:50:51 +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.