# Unroll Sha3 inner loop · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/7a893691c0aedf4d7ae68a9eb06800e4094381cc)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 7a893691c0aedf4d7ae68a9eb06800e4094381cc

Requested commit: 7a893691c0aedf4d7ae68a9eb06800e4094381cc

Commit: 7a893691c0aedf4d7ae68a9eb06800e4094381cc

Tree: a1f4315923fb78ff938edeb6d5bd124b47a1bb5d

Author: Marc Tiehuis

Committer: Marc Tiehuis

## Message

```
Unroll Sha3 inner loop

Issue #699 since fixed. Nearly a x3 perf improvement.

Using --release-fast.

Sha3_256 (before): 96 Mb/s
Sha3_256  (after): 267 Mb/s

Sha3_512 (before): 53 Mb/s
Sha3_512  (after): 142 Mb/s

No real gains from unrolling other initialization loops in crypto
functions so have been left as is.

```

## Parents

- [5a7a0e8518bcb9e63c06dba21d9c9e2bb0827330](https://git.cafe/gitcafe/zig/commit/5a7a0e8518bcb9e63c06dba21d9c9e2bb0827330?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/7a893691c0aedf4d7ae68a9eb06800e4094381cc?format=markdown)
