Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallelize account and publisher sync #43

Merged
merged 6 commits into from
Aug 15, 2024
Merged

Conversation

mcamou
Copy link
Contributor

@mcamou mcamou commented Aug 14, 2024

In my tests with 2 validator and 2 publisher nodes, this reduced the program-admin execution time when bringing up Blockmark from 1400 sec to 140 sec. I'll leave it running for a while before merging, just to check that there are no untoward effects.

@mcamou mcamou marked this pull request as ready for review August 14, 2024 17:33
@mcamou mcamou marked this pull request as draft August 14, 2024 17:34

if product_updates:
await self.refresh_program_accounts()

# Sync publishers

transactions = []
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can define price_feed_transactions and publisher_transactions as two separate lists instead of reusing the same object for the sake of safety.

@ayazabbas ayazabbas marked this pull request as ready for review August 15, 2024 14:00
@ayazabbas ayazabbas merged commit 11e142d into main Aug 15, 2024
2 checks passed
@ayazabbas ayazabbas deleted the mc/parallelize-sync branch August 15, 2024 14:00
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.

3 participants