aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/linters/src/Linters/NoModRs.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-19 23:45:37 +0900
committernsfisis <nsfisis@gmail.com>2026-08-19 23:45:37 +0900
commit95bb4d31909367597f71e8e0c90e008d25945dd3 (patch)
treec3fac2f9e6bd9718c17358d56b017aa5b4bc4dd2 /scripts/linters/src/Linters/NoModRs.php
parent0800c90a7ec0bc7a3d4c13063dfe6d2298a557bc (diff)
downloadphp-shirabe-95bb4d31909367597f71e8e0c90e008d25945dd3.tar.gz
php-shirabe-95bb4d31909367597f71e8e0c90e008d25945dd3.tar.zst
php-shirabe-95bb4d31909367597f71e8e0c90e008d25945dd3.zip
perf(php-src): stop collecting version tokens into vectors
php_version_compare canonicalized both operands into a Vec<&str> and copied the canonicalized bytes a second time through from_utf8_lossy().into_owned(). Walk the split iterators directly and move the Vec<u8> into the String, which takes the per-call allocation count from six down to two. Splits are only ever inserted at ASCII digit boundaries, so the buffer is always valid UTF-8. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'scripts/linters/src/Linters/NoModRs.php')
0 files changed, 0 insertions, 0 deletions