Skip to content
This repository was 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
kegsay merged 1 commit into
developfrom
kegan/sync-perf
Nov 22, 2016
Merged

Return early on /sync code paths if a '*' filter is used#1640
kegsay merged 1 commit into
developfrom
kegan/sync-perf

Conversation

@kegsay
Copy link
Copy Markdown
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
Copy Markdown
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