6 Commits

Author SHA1 Message Date
David Contreras
d303b34a7e
feat: improve the performance of map with multiple arguments (#3526) 2025-10-09 20:02:13 +02:00
David Contreras
d9b609b8fc
feat: improved performance of DenseMatrix Symbol.iterator (#3395) 2025-02-20 11:46:07 +01:00
Jos de Jong
543dfb14bb chore: refactor the benchmarks to use tinybench 2024-12-11 15:53:39 +01:00
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