diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-19 23:45:37 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-19 23:45:37 +0900 |
| commit | 95bb4d31909367597f71e8e0c90e008d25945dd3 (patch) | |
| tree | c3fac2f9e6bd9718c17358d56b017aa5b4bc4dd2 /crates/shirabe/src/plugin/capable.rs | |
| parent | 0800c90a7ec0bc7a3d4c13063dfe6d2298a557bc (diff) | |
| download | php-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 'crates/shirabe/src/plugin/capable.rs')
0 files changed, 0 insertions, 0 deletions
