You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current store generates a sha256 cache key for every item. For a few requests this is fine. In particular when many requests are executed in a process, we can easily improve the total execution time by replacing this with a faster algorithm.
…r http cache store key (Pascal Woerde)
This PR was squashed before being merged into the 6.2 branch.
Discussion
----------
[HttpKernel] Use xxh128 algorithm instead of sha256 for http cache store key
| Q | A
| ------------- | ---
| Branch? | 6.2
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets | Fix#46893
| License | MIT
Use xxh3 algorithm instead of sha256 for http cache store key. PR as requested in #46893
* Note that the xxHash support is available since PHP 8.1 as noted in the [change log](https://www.php.net/ChangeLog-8.php#PHP_8_1).
Commits
-------
0acc3ea [HttpKernel] Use xxh128 algorithm instead of sha256 for http cache store key
Description
Description
The current store generates a
sha256
cache key for every item. For a few requests this is fine. In particular when many requests are executed in a process, we can easily improve the total execution time by replacing this with a faster algorithm.Possible Solution
https://github.com/symfony/http-kernel/blob/6.1/HttpCache/Store.php#L229
Replace
sha256
withxxh3
Example
No response
The text was updated successfully, but these errors were encountered: