kurierjs / kurier

TypeScript framework to create JSON:API compliant APIs
https://kurier.readthedocs.io/en/latest/
MIT License
61 stars 9 forks source link

Fix/reduce spread reduce #316

Closed spersico closed 2 years ago

spersico commented 2 years ago

Inspired by this article, this PR removes most if not all reduce...spread usage.

It would be nice to have performance tests, to test how much the performance improved, but it's late, it's an order of magnitude faster (O(n^2) to O(n)), and I don't wanna code that RN.