Use xxHash instead of SHA-256 when security is not a concern

Created on 18 April 2024, 7 months ago
Updated 23 July 2024, 4 months ago

Problem/Motivation

@Catch pointed out in core review https://git.drupalcode.org/project/drupal/-/merge_requests/3608#note_297724

\Drupal\package_manager\Validator\LockFileValidator::getHash could use xxHash algorithms https://php.watch/versions/8.1/xxHash

Probably \Drupal\package_manager\ComposerInspector::invalidateCacheIfNeeded also

Steps to reproduce

Proposed resolution

Use xxhash algorithms for speed. In the cases we will use it for in this issue it is simply to detect if a file, either composer.json or composer.lock has changed.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024