mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 22:00:19 -05:00
Reverse the order of disk buffers that are accessed in backward order.
This improves a little the speed.
This commit is contained in:
parent
3dd6e50c4e
commit
6a3438f883
9 changed files with 31 additions and 11 deletions
3
util.h
3
util.h
|
|
@ -460,9 +460,10 @@ void* malloc_nofail_align(size_t size, void** freeptr);
|
|||
/**
|
||||
* Safe aligned vector allocation.
|
||||
* Returns a vector of "count" pointers, each one pointing to a block of the specified "size".
|
||||
* The first "reverse" pointers are put in reverse memory offset order.
|
||||
* If no memory is available, it aborts.
|
||||
*/
|
||||
unsigned char** malloc_nofail_vector_align(size_t count, size_t size, void** freeptr);
|
||||
unsigned char** malloc_nofail_vector_align(size_t reverse, size_t count, size_t size, void** freeptr);
|
||||
|
||||
/**
|
||||
* Test the memory vector for RAM problems.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue