SCCP optimize special string concats to make strings interned

Đang mở
#25,371 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, php
Lĩnh vực
backend, performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C
Star
41.8k
Fork
8.5k
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
145

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của php/php-src

Tất cả issue của php/php-src

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.