Skip to content

Optimize EventBus wildcard matching #47

@thedhanawada

Description

@thedhanawada

Problem

EventBus compiles a regex on every emit call when checking wildcard subscriptions. This is wasteful.

Fix

Pre-compile and cache wildcard patterns when subscriptions are created. Invalidate cache only when subscriptions change.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions