Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[RFC]: Add native C implementations for cumulative statistics functions in `@stdlib/stats/base`

Đã đóng
#15,473 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
45/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, javascript, nodejs
Lĩnh vực
backend, performance

Hướng nghiên cứu

The issue targets the @stdlib/stats/base package, specifically the cumulative statistics functions (cumax, cumaxabs, cumin, cuminabs). Start by examining the existing JavaScript implementations in the package. Look for N-API examples in the codebase to understand the native addon pattern. The goal is to create C implementations that avoid V8 bounds-checking overhead. 'Done' means the native addons are integrated and passing tests for these functions.

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

Mô tả

Description

This RFC proposes adding native C implementations (via N-API) for the basic cumulative statistics functions in @stdlib/stats/base. Currently, these functions rely exclusively on pure JavaScript implementations. Adding these native addons will help avoid V8 bounds-checking overhead and improve iteration performance over large memory buffers.

Related Issues

Related issues none.

Questions

No.

Other
Packages
  • @stdlib/stats/base/cumax
  • @stdlib/stats/base/cumaxabs
  • @stdlib/stats/base/cumin
  • @stdlib/stats/base/cuminabs
Checklist
  • I have read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.
  • The issue name begins with RFC:.
Ngôn ngữ chính
JavaScript
Star
6k
Fork
1.3k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
580

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 stdlib-js/stdlib

Tất cả issue của stdlib-js/stdlib

Issue tương tự

Thêm issue về JavaScript

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.