a8m / a8m/angular-filter

Performance issue in groupBy

Offen
#189 10 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
PRs plz!
Vorherrschende Sprache
JavaScript
Sterne
2.9k
Forks
319
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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 :)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.