Skip to content

Feature flags can be costly when read zillions of times #18004

Closed
@jryans

Description

@jryans

Some feature flags (such as the one for Spaces) are checked in hot code paths, such as isRoomVisible. Every time we check a feature flag, we read it from localStorage. 😱

We should probably cache those feature flags in memory instead.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions