Skip to content

crypto.blake2b: use fixed arrays for block manipulations#26751

Merged
JalonSolov merged 1 commit into
vlang:masterfrom
tankf33der:blake2b_fixed
Mar 21, 2026
Merged

crypto.blake2b: use fixed arrays for block manipulations#26751
JalonSolov merged 1 commit into
vlang:masterfrom
tankf33der:blake2b_fixed

Conversation

@tankf33der

Copy link
Copy Markdown
Contributor

A very beneficial patch that gives a 4x+ speedup for gcc on my cheap laptop for my synthetic test, and even the tests run faster in gcc.
For tcc, no such impact is visible.

In the future this will speed up the XOF functionality which I will be making a PR for soon.

The only point of the patch is the transition to fixed arrays, very easy to audit.
My external full coverage tests also pass successfully.

@JalonSolov JalonSolov merged commit 9cc40ae into vlang:master Mar 21, 2026
73 of 78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants