Skip to content

Conversation

@xHeaven
Copy link
Contributor

@xHeaven xHeaven commented Jan 26, 2026

Fixes #1903.

Also eliminates crc32 from Tempest entirely, it provides almost no practical advantage over xxh64, while having a significantly higher collision risk.

In my benchmarks with 100M iterations xxh64 was only ~7-10% slower compared to crc32.

@xHeaven xHeaven requested a review from brendt as a code owner January 26, 2026 03:18
@xHeaven xHeaven force-pushed the fix/view-cache-collision-resistance branch from 7d3cfb1 to f6b3ea0 Compare January 26, 2026 03:26
@xHeaven xHeaven requested a review from aidan-casey as a code owner January 26, 2026 03:26
@xHeaven xHeaven changed the title fix(view): use xxh64 for ViewCache key to prevent collisions fix(view): use xxh64 for instead of crc32 Jan 26, 2026
@xHeaven xHeaven changed the title fix(view): use xxh64 for instead of crc32 fix: use xxh64 for instead of crc32 Jan 26, 2026
@xHeaven xHeaven force-pushed the fix/view-cache-collision-resistance branch from f6b3ea0 to b68778a Compare January 26, 2026 03:27
@innocenzi innocenzi changed the title fix: use xxh64 for instead of crc32 refactor(cache): use xxh64 for instead of crc32 Jan 26, 2026
@xHeaven xHeaven changed the title refactor(cache): use xxh64 for instead of crc32 refactor(cache): use xxh64 instead of crc32 Jan 26, 2026
@innocenzi innocenzi merged commit 4863e30 into tempestphp:3.x Jan 26, 2026
76 checks passed
@xHeaven xHeaven deleted the fix/view-cache-collision-resistance branch January 26, 2026 15:57
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.

ViewCache key is insufficiently collision-resistent

3 participants