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

[framework] vector zip destroy_empty + allow return values in lambdas #20745

Merged
merged 14 commits into from
Jan 25, 2025

Conversation

damirka
Copy link
Contributor

@damirka damirka commented Dec 27, 2024

Description

  • adds v2.destroy_empty in zip_do to support destroying vectors of non-droppable Ts
  • allows return values in lambdas as a convenience feature to not wrap lambdas into braces
  • slight boost in performance of vector::do! by using .length() just once

Test plan

  • features tests

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:

@damirka damirka self-assigned this Dec 27, 2024
@damirka damirka temporarily deployed to sui-typescript-aws-kms-test-env December 27, 2024 17:54 — with GitHub Actions Inactive
Copy link

vercel bot commented Dec 27, 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 Jan 25, 2025 7:55am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Jan 25, 2025 7:55am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Jan 25, 2025 7:55am
sui-typescript-docs ⬜️ Ignored (Inspect) Jan 25, 2025 7:55am

@damirka damirka temporarily deployed to sui-typescript-aws-kms-test-env January 17, 2025 06:50 — with GitHub Actions Inactive
@damirka
Copy link
Contributor Author

damirka commented Jan 17, 2025

Addressed your comment @tnowacki, let me know if you want a similar approach elsewhere in the code.

Copy link
Contributor

@ronny-mysten ronny-mysten left a comment

Choose a reason for hiding this comment

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

helpful, i know

crates/sui-framework/CONTRIBUTING.md Outdated Show resolved Hide resolved
Co-authored-by: ronny-mysten <[email protected]>
@damirka damirka temporarily deployed to sui-typescript-aws-kms-test-env January 25, 2025 07:54 — with GitHub Actions Inactive
@damirka damirka merged commit d7704d4 into main Jan 25, 2025
51 checks passed
@damirka damirka deleted the ds/fix-vector-macro-once-again branch January 25, 2025 10:29
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.

5 participants