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

[move] Update some calls to is_empty in loops #19918

Merged
merged 2 commits into from
Oct 29, 2024
Merged

Conversation

tzakian
Copy link
Contributor

@tzakian tzakian commented Oct 18, 2024

Description

Optimizes some calls to is_empty in loop conditions. This saves on the function call overhead and uses the bytecode instruction directly.

Test plan

Make sure existing tests pass.


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: Internal changes to the Sui framework.
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

Copy link

vercel bot commented Oct 18, 2024

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 Oct 28, 2024 11:43pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Oct 28, 2024 11:43pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Oct 28, 2024 11:43pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Oct 28, 2024 11:43pm

@tzakian tzakian force-pushed the tzakian/optimize-is-empty branch from 5e3b148 to 90f680d Compare October 28, 2024 23:41
@tzakian tzakian enabled auto-merge (squash) October 28, 2024 23:48
@tzakian tzakian merged commit 68ac44a into main Oct 29, 2024
53 of 54 checks passed
@tzakian tzakian deleted the tzakian/optimize-is-empty branch October 29, 2024 00:08
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.

2 participants