mirror of
https://github.com/restic/restic.git
synced 2026-02-10 22:33:22 -05: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. |
||
|---|---|---|
| .. | ||
| testdata | ||
| blob.go | ||
| config.go | ||
| config_test.go | ||
| doc.go | ||
| index.go | ||
| index_test.go | ||
| key.go | ||
| parallel.go | ||
| parallel_test.go | ||
| pool.go | ||
| repository.go | ||
| repository_test.go | ||