Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Return early on /sync code paths if a '*' filter is used #1640

Merged
merged 1 commit into from
Nov 22, 2016

Conversation

kegsay
Copy link
Member

@kegsay kegsay commented Nov 22, 2016

Currently checks for * filters on:

  • Presence events
  • Ephemeral room events
  • Room timeline events

This is currently very conservative in that it only does this if there is no
since token. This limits the risk to clients likely to be doing one-off
syncs (like bridges), but does mean that normal human clients won't benefit
from the time savings here. If the savings are large enough, I would consider
generalising this to just check the filter.

This is currently very conservative in that it only does this if there is no
`since` token. This limits the risk to clients likely to be doing one-off
syncs (like bridges), but does mean that normal human clients won't benefit
from the time savings here. If the savings are large enough, I would consider
generalising this to just check the filter.
@erikjohnston
Copy link
Member

lgtm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants