# Implement ghash aggregated reduction · gitcafe/zig

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

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

Visibility: public

Requested revision: 8161de7fa44393c08cf96c9f9aa5379f98925472

Requested commit: 8161de7fa44393c08cf96c9f9aa5379f98925472

Commit: 8161de7fa44393c08cf96c9f9aa5379f98925472

Tree: a748195f42f256885b10c03b4d37dfaa8ef71947

Author: Frank Denis

Committer: Frank Denis

## Message

```
Implement ghash aggregated reduction

Performance increases from ~400 MiB/s to 450 MiB/s at the expense of
extra code. Thus, aggregation is disabled on ReleaseSmall.

Since the multiplication cost is significant compared to the reduction,
aggregating more than 2 blocks is probably not worth it.

```

## Parents

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

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