mirror of
https://github.com/restic/restic.git
synced 2026-02-25 02:06:24 +00:00
This changes `repository.LoadBlob()` so that a destination buffer must be provided, which enables the fuse code to use a buffer from a `sync.Pool`. In addition, release the buffers when the file is closed. At the moment, the max memory usage is defined by the max file size that is read in one go (e.g. with `cat`). It could be further optimized by implementing a LRU caching scheme.
9.9 KiB
9.9 KiB