diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-05-23 05:30:16 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-05-23 17:21:15 +0200 |
commit | 4587a56466f0c55d91ece168f0dc872f81a8196c (patch) | |
tree | 1b7648f0b4bca6620387ad5ca0b9003f46aca545 /bin/rdsquashfs/list_files.c | |
parent | 0ffda020899f36e17e74a9cb2019066d753bddc2 (diff) |
block processor: recycle blocks to reduce allocation pressure
Instead of freeing/allocating blocks all the time in the locked,
serial path, use a free list to "recycle" blocks. Once a block is
no longer used, throw it onto the free list. If a new block is,
needed try to get one from the free list before calling malloc.
After a few iterations, the block processor should stop allocating
new blocks and only re-use the ones it already has.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/rdsquashfs/list_files.c')
0 files changed, 0 insertions, 0 deletions