stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

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

Open AryanSharma48 opened this issue 2 months ago • 1 comments

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

  • [x] I have read and understood the Code of Conduct.
  • [x] Searched for existing issues and pull requests.
  • [x] The issue name begins with RFC:.

AryanSharma48 avatar Sep 23 '26 21:09 AryanSharma48

Thanks for opening this issue, @AryanSharma48. However, none of the packages listed above should have C implementations. They are "generic", not typed, implementations. That they omit C implementations is currently intentional. Will go ahead and close this.

kgryte avatar Sep 26 '26 03:09 kgryte