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

filter_events_for_client is time-consuming and expensive #14108

@MadLittleMods

Description

@MadLittleMods

filter_events_for_client is time-consuming and expensive.

From this /messages request (full trace), it takes 7.83s for 500 events and is one of the biggest time saves left after other /messages optimizations we've already made. Most of time is just spent in the database getting the state out.

/message trace in Jaeger show how slow `filter_events_for_client` is


Related to filter_events_for_server being expensive, #3526

Metadata

Metadata

Assignees

Labels

A-Messages-Endpoint/messages client API endpoint (`RoomMessageListRestServlet`) (which also triggers /backfill)S-MinorBlocks non-critical functionality, workarounds exist.T-EnhancementNew features, changes in functionality, improvements in performance, or user-facing enhancements.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions