#1233 Cache roster of offline users

Reporter Zash
Owner Zash
Stars ★★ (2)
  • Type-Enhancement
  • Difficulty-Easy
  • Performance
  • Status-Fixed
  • Milestone-0.12
  • Priority-High
  1. Zash on

    Summary: Cache rosters of offline users in order to improve performance Motivation Access checks involving rosters happens a lot, especially with PEP. This can lead to loading the same users' roster a large number of times every time one of their contacts broadcast presence. Loading recently used rosters from a cache instead of storage should improve performance and reduce needless I/O.

  2. Zash on

    Should be fairly easy, just sprinkle some util.cache on top and call it a day! ;)

    • tags Difficulty-Easy
  3. MattJ on

    • tags Priority-High
  4. Zash on

    Done in https://hg.prosody.im/trunk/rev/42a3e3a28248

    • owner Zash
    • tags Status-Fixed
  5. MattJ on

    Applied in 0.11 as 3df479098696

New comment

Not published. Used for spam prevention and optional update notifications.