This patch adds logarithmic malloc behaviour to iscsi_add_data(). Currently for each new call there is a new buffer allocated and all old data is copied to the new buffer. Change this by allocating at least PAGE_SIZE bytes and increase the allocation by powers of 2 each time it does no longer fit.
36 KiB
36 KiB