Zstd Improvement For Linux 7.4 To Avoid Redundant Initialization

Usama recently posted the patches to avoid redundant cstream and dstream initialization. He noticed there was an extra initialization with the first initialization being discarded without ever processing any data. With the new patches, stream initialization is deferred to the first walk iteration.
With the two patches, the cover letter shows off some significant improvements in a 4KB crypto_acomp benchmark run. Single digit improvements to the Zstd compression speed and 13% decompression speed-up on bare metal or 35% within a VM:
The two patches were picked up this week into the cryptodev Git branch. With the patches now in the cryptography subsystem's development branch, they should be submitted for the upcoming Linux 7.4 merge window.
4 Comments
