mirror of
https://github.com/restic/restic.git
synced 2026-04-15 17:38:52 +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.