Skip to content

Compresses the wasm binary to reduce its size when hosted#221

Open
gcharang wants to merge 6 commits intodevfrom
gzip-kdf-wasm
Open

Compresses the wasm binary to reduce its size when hosted#221
gcharang wants to merge 6 commits intodevfrom
gzip-kdf-wasm

Conversation

@gcharang
Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings September 15, 2025 06:41
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Sep 15, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch gzip-kdf-wasm

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gcharang gcharang marked this pull request as draft September 15, 2025 06:41
@gcharang gcharang changed the title adds js side of loading gzipped wasm bin in client Compresses the wasm binary to reduce its size when hosted Sep 15, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements client-side loading of gzipped WASM binaries to reduce bundle size and improve loading performance. The changes add automatic WASM compression during the build process and client-side decompression support.

  • Adds build-time compression of kdflib_bg.wasm files to .wasm.gz format
  • Implements JavaScript client-side decompression using the DecompressionStream API
  • Updates the WASM bootstrapper to load compressed binaries instead of raw WASM files

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
copy_platform_assets_build_step.dart Adds automatic gzip compression for kdflib_bg.wasm files during asset copying
wasm_loader.js New utility module for loading and decompressing gzipped WASM files
kdflib_bootstrapper.js Updates WASM initialization to use compressed binaries via the new loader

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/komodo_defi_framework/web/res/wasm_loader.js Outdated
Comment thread packages/komodo_defi_framework/web/res/kdflib_bootstrapper.js Outdated
gcharang and others added 2 commits September 15, 2025 12:13
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@gcharang gcharang marked this pull request as ready for review September 15, 2025 07:26
@gcharang gcharang requested review from CharlVS and Copilot September 15, 2025 07:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/komodo_defi_framework/web/res/kdflib_bootstrapper.js
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 1, 2025

Visit the preview URL for this PR (updated for commit e654ec3):

https://kdf-sdk--pr221-gzip-kdf-wasm-6lox8x7k.web.app

(expires Sat, 08 Nov 2025 09:32:20 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 9c1b6e6c010cf0b965c455ba7a69c4aedafa8a1d

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 1, 2025

Visit the preview URL for this PR (updated for commit e654ec3):

https://komodo-playground--pr221-gzip-kdf-wasm-7iv1l622.web.app

(expires Sat, 08 Nov 2025 09:32:20 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 2bfedd77fdea45b25ba7c784416e81f177aa5c47

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