ThibG f895bf1984 Optimize makeGetStatus (#11211)
* Optimize makeGetStatus

Because `ImmutableList.filter` always returns a new object and `createSelector`
memoizes based on object identity, the selector returned by `makeGetStatus`
would *always* execute.

To avoid that, we wrap `getFilters` into a new memoizer that memoizes based on
deep equality, thus returning the same object as long as the filters haven't
changed, allowing the memoization of `makeGetStatus` to work.

Furthermore, we memoize the compiled regexs instead of recomputing them each
time the selector is called.

* Fix memoized result being cleared too often

* Make notifications use memoized getFiltersRegex
2019-06-30 00:12:38 +02:00
..
2018-03-24 13:06:27 +01:00
2017-07-08 00:06:02 +02:00
2018-06-29 15:34:36 +02:00
2017-09-13 10:24:33 +02:00
2017-05-20 17:31:47 +02:00
2018-03-24 13:06:27 +01:00
2018-02-28 06:54:55 +01:00
2018-04-17 15:23:46 +02:00
2018-03-24 13:06:27 +01:00