Reverse the order of disk buffers that are accessed in backward order.

This improves a little the speed.
This commit is contained in:
Andrea Mazzoleni 2013-11-04 19:45:29 +01:00
parent 3dd6e50c4e
commit 6a3438f883
9 changed files with 31 additions and 11 deletions

3
util.h
View file

@ -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.