a8m / a8m/angular-filter

Performance issue in groupBy

Open
#189 10 comments 1 reaction 0 assignees View on GitHub
PRs plz!
Dominant language
JavaScript
Stars
2.9k
Forks
319
PR merge metrics
No merged PRs in 30d

Description

I have an array of 300 non-trivial objects, which I want to filter with `groupBy`. When I attempt to do that, my whole applications slows to a crawl.

This is due to enormous amounts of time being spent in `getHashKey`, which `JSON.stringify`s the whole array to use that as the key for `$$cache`.

If there's an alternative approach, I'd love to hear it :)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.