You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
6 years ago
..
chewy Fix NameError (#11192) 6 years ago
controllers Add categories for custom emojis (#11196) 6 years ago
helpers
javascript Optimize makeGetStatus (#11211) 6 years ago
lib Add option to disable blurhash previews (#11188) 6 years ago
mailers
models Add categories for custom emojis (#11196) 6 years ago
policies
presenters
serializers Add categories for custom emojis (#11196) 6 years ago
services
validators
views Add option to disable blurhash previews (#11188) 6 years ago
workers