Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Subscription Optimizations #10194

Closed
CriesofCarrots opened this issue May 22, 2020 · 3 comments
Closed

Subscription Optimizations #10194

CriesofCarrots opened this issue May 22, 2020 · 3 comments
Labels
locked issue stale [bot only] Added to stale content; results in auto-close after a week.
Milestone

Comments

@CriesofCarrots
Copy link
Contributor

Problem

#10147 introduced separate subscription maps for gossip-triggered notifications, such that only subscriptions set with SingleGossip commitment are checked when a new single-confirmation slot is detected in gossip. This concept could be applied to the Bank-triggered notifications as well. Currently, when a node votes on a new Bank, the subscription service checks all Bank subscriptions, wasting effort if the known max, root, or highest confirmed slot has not actually changed.

Proposed Solution

Refactor Bank-triggered subscriptions to only check subscriptions with a commitment-level known to have changed. This would look something like:

  • extend last_checked_slots cache to track max-, root-, and single-commitment checked slots
  • index subscriptions by commitment level to easily check subsets; bring gossip_*_subscriptions back into the fold
  • add subscription id lookup map to enable quick unsubscribe operations across commitment levels

cc @jstarry

@stale
Copy link

stale bot commented Sep 6, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Sep 6, 2021
@stale
Copy link

stale bot commented Sep 21, 2021

This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Sep 21, 2021
@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any activity in past 7 days after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked issue stale [bot only] Added to stale content; results in auto-close after a week.
Projects
None yet
Development

No branches or pull requests

2 participants