[PATCH v2] Optimize buffer_is_zero

2023-10-27 Thread Mikhail Romanov
s len >= 4. After these improvements buffer_is_zero works ~40% faster and takes 28% of qemu-img run time (measured the same way as initial version, inline wrapper execution included). The test-bufferiszero.c unit test still passes. Signed-off-by: Mikhail Romanov --- v2: reworded the commit

[PATCH] buffer_is_zero improvement

2023-10-13 Thread Mikhail Romanov
ese improvements buffer_is_zero works ~40% faster and takes 28% of qemu-img runtime (measured the same way as initial version, inline wrapper execution included). The test-bufferiszero.c unit test still passes. Signed-off-by: Mikhail Romanov --- Now buffer_is_zero wrapper has a sophisticated contr