mastodon/app
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
..
chewy Fix NameError (#11192) 2019-06-27 09:16:55 +02:00
controllers Add categories for custom emojis (#11196) 2019-06-28 15:54:10 +02:00
helpers
javascript Optimize makeGetStatus (#11211) 2019-06-30 00:12:38 +02:00
lib Add option to disable blurhash previews (#11188) 2019-06-26 19:33:04 +02:00
mailers
models Add categories for custom emojis (#11196) 2019-06-28 15:54:10 +02:00
policies
presenters
serializers Add categories for custom emojis (#11196) 2019-06-28 15:54:10 +02:00
services
validators
views Add option to disable blurhash previews (#11188) 2019-06-26 19:33:04 +02:00
workers