Compute HTML byte coverage for all decoded sources in one traversal

Đang mở
#3,838 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
70/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
performance

Hướng nghiên cứu

Start at polyfile/html.py:98 and trace how HTML report generation gathers coverage for each source. Change the collection so coverage intervals are gathered per source in one traversal, then use a multisource fixture to verify identical sorted gaps and standalone output. Compare scaling as the member count grows.

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

Mô tả

enhancement

HTML report generation walks the entire structure tree for every source. In an isolated measurement of source_buffers, 400 one-node sources took about 0.0105 seconds, while 800 took about 0.0408 seconds. Archives with many decoded members repeat this work.

Release timing. This optimization can ship after 1.0 without changing the report format.

Acceptance. Collect coverage intervals per source in one traversal. Verify identical sorted coverage gaps and standalone output on a multisource fixture, and compare scaling as the member count grows.

polyfile/html.py:98

Ngôn ngữ chính
Python
Star
394
Fork
34
Merge trung bình
14 giờ 46 phút
Pull request đã merge (30 ngày)
130

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 trailofbits/polyfile

Tất cả issue của trailofbits/polyfile

Issue tương tự

Thêm issue về Python

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.