mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 14:20:05 -05:00
Optimize the access at the mapping trees
We access them sequentially, and keeping the last accessed block is enough to improve the speed.
This commit is contained in:
parent
20043778e4
commit
74ca71600d
2 changed files with 73 additions and 13 deletions
|
|
@ -330,6 +330,12 @@ struct snapraid_disk {
|
|||
tommy_tree fs_parity;
|
||||
tommy_tree fs_file;
|
||||
|
||||
/**
|
||||
* Last chunk we accessed.
|
||||
* It's used to optimize access of sequential blocks.
|
||||
*/
|
||||
struct snapraid_chunk* fs_last;
|
||||
|
||||
/**
|
||||
* List of all the snapraid_file for the disk.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue