chinwagsocial/app/javascript
ThibG d588173ab3 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-08-06 21:51:02 +02:00
..
fonts Redesign the landing page, mount public timeline on it (#4122) 2017-07-11 15:27:59 +02:00
images Change full logo to use primary text color of the given theme (#10994) 2019-06-08 15:30:06 +02:00
mastodon Optimize makeGetStatus (#11211) 2019-08-06 21:51:02 +02:00
packs Put poll options behind content warnings (#10983) 2019-06-08 17:40:59 +02:00
styles Change audio format from ogg to mp3 for wider compatibility (#11141) 2019-06-21 22:59:44 +02:00