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

Improve shield sync time #472

Merged
merged 2 commits into from
Nov 19, 2024
Merged

Improve shield sync time #472

merged 2 commits into from
Nov 19, 2024

Conversation

panleone
Copy link
Member

Abstract

Fix a edge case of #471 that led to sync never finishing.

Also profiling showed that a batch size in the range ~[10,100] gives fastest results. So I set it to 10 in order to have a smoother progress bar.

I left the profiling timers because they are very useful to test shield lib optimization PRs.


@panleone panleone added the Performance An improvement and/or suggestion regarding performance label Nov 19, 2024
@panleone panleone requested review from JSKitty and Duddino November 19, 2024 15:06
@panleone panleone self-assigned this Nov 19, 2024
Copy link

netlify bot commented Nov 19, 2024

Deploy Preview for cheery-moxie-4f1121 ready!

Name Link
🔨 Latest commit 6e6ac23
🔍 Latest deploy log https://app.netlify.com/sites/cheery-moxie-4f1121/deploys/673ca9892a8f1b000807c374
😎 Deploy Preview https://deploy-preview-472--cheery-moxie-4f1121.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@JSKitty JSKitty left a comment

Choose a reason for hiding this comment

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

tACK 6e6ac23

Perfect balance, the visual progress is quite important for UX, but without harming sync performance too much. 🔥

@panleone panleone merged commit a44f5f0 into PIVX-Labs:master Nov 19, 2024
6 checks passed
@panleone panleone deleted the shield_bench branch November 19, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance An improvement and/or suggestion regarding performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants