Consider BlazeDiff instead of pixelmatch for faster image diffs

Đang mở
#2,241 1 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
18/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
testing

Hướng nghiên cứu

The payload names only pixelmatch, the image diff library this issue proposes replacing, and gives no file or test paths. Before writing code, find where pixelmatch is used in the repository and check whether maintainers want a dependency change at all, since the thread has only one comment and no decision. A newcomer's first step is a comment asking for that decision; done means a maintainer has either accepted a specific swap with a plan or closed the issue.

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

Mô tả

Hey! I made BlazeDiff - the fastest image diff tool (MIT). It keeps pixelmatch approach, but 68% faster on average and 88% faster on identical images (benchmarks).

Initially, made it because my team hurt the visuals testing time. I could make it faster because it first compares blocks of pixels (squares) and skips the blocks that did not change, so only changed ones go to the expensive check.

Vitest, Ant Design, ApexCharts, Vega and React Native Skia (Shopify) already migrated to it.

I can open a PR if you want a faster diff with 0 effort.

Useful links

Ngôn ngữ chính
TypeScript
Star
961
Fork
179
Merge trung bình
15 giờ 33 phút
Pull request đã merge (30 ngày)
476

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 getsentry/toolkit

Tất cả issue của getsentry/toolkit

Issue tương tự

Thêm issue về TypeScript

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.