Skip to content

Speed up metadata update on unsubscribe#2880

Merged
joshua-spacetime merged 1 commit into
masterfrom
joshua/perf/updating-subscription-metadata
Jun 20, 2025
Merged

Speed up metadata update on unsubscribe#2880
joshua-spacetime merged 1 commit into
masterfrom
joshua/perf/updating-subscription-metadata

Conversation

@joshua-spacetime

Copy link
Copy Markdown
Contributor

Description of Changes

Performance tests showed a disproportionate amount of time being spent updating subscription metadata for unsubscribe vs subscribe. This was due to multiple scans of the search argument map in remove_multi_subscription. This patch replaces those scans, such as those performed by retain, with key lookups into the map.

API and ABI breaking changes

None

Expected complexity level and risk

1

Testing

This is a refactor and so previous test coverage still applies.

@joshua-spacetime joshua-spacetime self-assigned this Jun 18, 2025
@joshua-spacetime joshua-spacetime requested a review from mamcx June 18, 2025 23:52

@mamcx mamcx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joshua-spacetime joshua-spacetime added this pull request to the merge queue Jun 20, 2025
Merged via the queue into master with commit 9608f49 Jun 20, 2025
20 checks passed
@joshua-spacetime joshua-spacetime deleted the joshua/perf/updating-subscription-metadata branch June 20, 2025 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants