mirror of
https://github.com/restic/restic.git
synced 2026-02-03 04:20:45 -05:00
The TreeNodeIterator decodes nodes while iterating over a tree blob. This should reduce peak memory usage as now only the serialized tree blob and a single node have to alive at the same time. Using the iterator has implications for the error handling however. Now it is necessary that all loops that iterate through a tree check for errors before using the node returned by the iterator. The other change is that it is no longer possible to iterate over a tree multiple times. Instead it must be loaded a second time. This only affects the tree rewriting code. |
||
|---|---|---|
| .. | ||
| archiver.go | ||
| archiver_test.go | ||
| archiver_unix_test.go | ||
| buffer.go | ||
| buffer_test.go | ||
| doc.go | ||
| exclude.go | ||
| exclude_test.go | ||
| file_saver.go | ||
| file_saver_test.go | ||
| scanner.go | ||
| scanner_test.go | ||
| testing.go | ||
| testing_test.go | ||
| tree.go | ||
| tree_saver.go | ||
| tree_saver_test.go | ||
| tree_test.go | ||