Skip to content

Conversation

@viviveevee
Copy link
Contributor

@viviveevee viviveevee 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.

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

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.

@viviveevee viviveevee enabled auto-merge (squash) October 22, 2024 08:19
@viviveevee viviveevee merged commit 705c346 into master Oct 22, 2024
@viviveevee viviveevee 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