SCCP optimize special string concats to make strings interned

Offen
#25,371 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
c, php
Bereich
backend, performance

Rechercherichtung

Start by reading the SCCP implementation and its tests in php-src to locate how constant string concatenations are handled. Compare the listed concatenation cases and determine which are not recognized as interned strings. Done means the applicable cases are covered by tests and the optimizer produces interned strings for them.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Feature Status: Needs Triage
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.

Vorherrschende Sprache
C
Sterne
41.8k
Forks
8.5k
Ø Merge
2 T. 13 Std.
Gemergte PRs (30 T.)
145

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus php/php-src

Alle Issues in php/php-src

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.