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

Add debt-based trigger for observation sharing #21493

Merged
merged 3 commits into from
Mar 14, 2025

Conversation

aschran
Copy link
Contributor

@aschran aschran commented Mar 13, 2025

Without this, some entrypoints could get stuck at high estimates with no way of adjusting back down.


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

Sorry, something went wrong.

@aschran aschran requested a review from mystenmark March 13, 2025 20:57
Copy link

vercel bot commented Mar 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 14, 2025 1:21am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Mar 14, 2025 1:21am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Mar 14, 2025 1:21am

@aschran aschran temporarily deployed to sui-typescript-aws-kms-test-env March 13, 2025 20:57 — with GitHub Actions Inactive
Without this, some entrypoints could get stuck at high
estimates with no way of adjusting back down.
@@ -51,6 +51,9 @@ pub struct ExecutionTimeObserver {
// via consensus.
object_utilization_tracker: LruCache<ObjectID, ObjectUtilization>,

// Sorted list of recently indebted objects, updated by consensus handler.
indebted_objects: Vec<ObjectID>,
Copy link
Contributor

Choose a reason for hiding this comment

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

repeating my comment from the stacked version of this commit: any reason you didn't use a HashSet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

took an educated guess that this might be faster due to cache locality, since it should be small?

happy to change it if you think that's dumb and premature optimization - it wasn't a very thoroughly considered decision - wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah if its small it might be faster. no need to change it, its just we don't do this anywhere else as far as i know.

@aschran aschran enabled auto-merge (squash) March 13, 2025 22:47
@aschran aschran temporarily deployed to sui-typescript-aws-kms-test-env March 14, 2025 01:19 — with GitHub Actions Inactive
@aschran aschran merged commit eab8bbd into main Mar 14, 2025
46 of 47 checks passed
@aschran aschran deleted the aschran/cc-estimator-debt-trigger branch March 14, 2025 01:46
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.

None yet

2 participants