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

perf: cap default poll interval #9250

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Nov 2, 2024

when we create the provider for cast, we don't necessarily know the chain (no foundry.toml) in which case we'd default to mainnet settings.

so for cast send this would always set a poll interval of ~7s which is not useful.

this now caps to 3s * 0.6 which should improve UX for all chains ~3s blocktime

Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

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

lgtm

@mattsse mattsse merged commit 97be9b9 into foundry-rs:master Nov 2, 2024
21 checks passed
rplusq pushed a commit to rplusq/foundry that referenced this pull request Nov 29, 2024
@grandizzy grandizzy added the T-perf Type: performance label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-perf Type: performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants