3 Commits

Author SHA1 Message Date
David Contreras
367c0d3d1e
chore: improve performance of functions map, filter and forEach (#3256)
* Implement reduceCallback

* Add jsdocs

* implement simplifyCallback in other functions

* Moved recurse to array.js

* Format

* Separate transform callback

* forEach transform

* Renamed applyCallback to simplifyCallback

* Simplified index transform

* renamed to reducedCallback and simplifiedCallback to simpleCallback

* chore: fix linting issue

* Added forEach benchmark

* renamed simplifyCallback to optimizeCallback

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-09-11 11:32:17 +02:00
Jos de Jong
76e23d1954 chore: extend the map.js benchmark 2024-09-04 16:11:34 +02:00
Jos de Jong
88a4b35e9d chore: add a benchmark testing DenseMatrix.map(...) and DenseMatrix.forEach(...) (see #3251) 2024-08-21 14:59:09 +02:00