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

feat(asset-canister): upload and commit in same message #3954

Merged
merged 12 commits into from
Oct 22, 2024

Conversation

sesi200
Copy link
Contributor

@sesi200 sesi200 commented Oct 18, 2024

Description

SetAssetContentArguments has a new field asset_content: opt blob which can be used instead of chunk_ids so that small assets can be uploaded as part of commit_batch,
skipping the need to await a separate create_chunk call.

No need to bump api version again since we didn't release an asset canister between the last bump and now.

How Has This Been Tested?

Covered by existing e2e

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@sesi200 sesi200 marked this pull request as ready for review October 18, 2024 20:13
@sesi200 sesi200 requested a review from a team as a code owner October 18, 2024 20:13
@chenyan-dfinity
Copy link
Collaborator

chenyan-dfinity commented Oct 18, 2024

LGTM! Time reduced from 4.8s to 2.4s!

Note to myself, icx-asset upload is 1s faster than icx-asset sync even if the canister is empty.

@sesi200 sesi200 enabled auto-merge (squash) October 22, 2024 08:19
@sesi200 sesi200 merged commit 705c346 into master Oct 22, 2024
297 checks passed
@sesi200 sesi200 deleted the SDK-1769-skip-chunk-upload branch October 22, 2024 09:22
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.

3 participants