mirror of https://github.com/zulip/zulip.git
8ad7133351
We now have a dedicated cache for active_user_ids() that only stores a list of user_ids. Before this commit, active_user_ids() used a cache of UserProfile dictionaries, so it incurred unnecessary deserialization costs for all the user fields that it sliced away in a list comprehension. Because the cache is skinnier here, we also need to invalidate it less frequently. Basically, all we care about is new users, realm deactivations, and user deactivations. It's hard to measure how much this will improve performance, because the speedup for any operation here is pretty minor, but we use this function a lot, so hopefully it will make the overall system more healthy. |
||
---|---|---|
.. | ||
fixtures | ||
lib | ||
management | ||
migrations | ||
templatetags | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py | ||
static_header.txt | ||
storage.py |