php-src icon indicating copy to clipboard operation
php-src copied to clipboard

SCCP optimize special string concats to make strings interned

Open rr-it opened this issue 3 weeks ago • 0 comments

Description

Currently these cases create an interned string:

$strInternedA = "A my valid string A";

$strInternedB = "B my valid" . " string B";

Whereas these cases do not become an interned string:

$strNonInternedC = "C my valid";
$strNonInternedC .= " string C";

$strInternedD1 = "D my valid";
$strNonInternedD2 = $strInternedD1 . " string D";

These cases could get further optimizations implemented.

rr-it avatar Nov 10 '26 15:11 rr-it