Performance testing

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

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
r

Hướng nghiên cứu

Start by examining routr::Route$dispatch(), then inspect reqres content negotiation and Request object construction. The issue provides no named files or tests, so first establish performance measurements for these entry points. Done would require evidence-based improvements or confirmation that the current overhead is already minimal.

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

Mô tả

We might as well iron out obvious performance issues before we release. plumber2 obviously adds overhead to fiery (+routr) be the mere act of making it easier to set up more complex apis. Without falling into the trap of premature optimisation, the following areas are where I might expect improvements to be found:

  • routr::Route$dispatch() as it sequentially tests the regex related to each path. The paths has been sorted by priority, so it exits as soon as possible, but I would be happy if we could avoid the r-side loop. In general it would be interesting if we could add support for precompilation of regexes in stringi so we could do all that up front and avoid the overhead of compiling them at every request (unless stringi already caches regexes)
  • Content negotiation in reqres could potentially be improved
  • Request object construction in reqres. I honestly don't think it can be done much faster since almost all parsing is delayed until the user request it

I'm sure I'm missing something obvious. It might also be that it is already as low-overhead as possible because past-me was more clever than I give credit for

Ngôn ngữ chính
R
Star
119
Fork
17
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 posit-dev/plumber2

Tất cả issue của posit-dev/plumber2

Issue tương tự

Thêm issue về R

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.