Skip to content

chacha20poly1305: uses native unaligned 32-bit little-endian loads/st… - #257

Merged
utelle merged 2 commits into
utelle:mainfrom
matbech:patch-4
Sep 3, 2026
Merged

chacha20poly1305: uses native unaligned 32-bit little-endian loads/st…#257
utelle merged 2 commits into
utelle:mainfrom
matbech:patch-4

Conversation

@matbech

@matbech matbech commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Description

uses native unaligned 32-bit little-endian loads and stores on WebAssembly.

  • scalar and SIMD ChaCha20 improved by 0.82% and 0.23%, respectively;
  • scalar and SIMD-target Poly1305 improved by 35.32% and 34.44%; and
  • scalar and production SQLite page encryption improved by 3.91% and 13.21%.

Type of Change

Please select the type of change:

  • Refactor (no behavior change)

Problem / Motivation

Improves performance for little-ending loads/stores.

Checklist

  • I have independently verified the issue
  • I am not submitting unverified or speculative changes
  • I understand that AI-assisted changes must be reviewed by a human before submission

…ores

uses native unaligned 32-bit little-endian loads and stores on WebAssembly.
- scalar and SIMD ChaCha20 improved by 0.82% and 0.23%, respectively;
- scalar and SIMD-target Poly1305 improved by 35.32% and 34.44%; and
- scalar and production SQLite page encryption improved by 3.91% and 13.21%.
Comment thread src/chacha20poly1305.c Outdated
Comment thread src/chacha20poly1305.c Outdated
@utelle
utelle merged commit 3df589b into utelle:main Sep 3, 2026
9 checks passed
@matbech
matbech deleted the patch-4 branch September 3, 2026 16:20
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