Skip to content

More efficient padding

Choose a tag to compare

@xformerfhs xformerfhs released this 28 Apr 14:42
· 10 commits to main since this release
a1e4213

This release features a more efficient padding function: PadLastBlock. It only allocates a new slice for the last block and does not copy all of the data. This makes it much faster than Pad, which remains in the package for simple padding of small data lengths.