stdlib
stdlib copied to clipboard
[RFC]: Add native C implementations for cumulative statistics functions in `@stdlib/stats/base`
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:.
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.