Skip to content

Bite ts 37/optimize t encrypt#294

Merged
olehnikolaiev merged 5 commits into
developfrom
bite-ts-37/optimize-t-encrypt
Feb 17, 2026
Merged

Bite ts 37/optimize t encrypt#294
olehnikolaiev merged 5 commits into
developfrom
bite-ts-37/optimize-t-encrypt

Conversation

@olehnikolaiev

@olehnikolaiev olehnikolaiev commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

fixes skalenetwork/bite-ts#37

decrease encrypt.js size from 5.8 mb to 2.7 mb

update t-encrypt package exports to make it tree-shakable

Copilot AI review requested due to automatic review settings February 16, 2026 18:58
badrogger
badrogger previously approved these changes Feb 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request optimizes the WebAssembly build of the threshold encryption library to reduce the output file size from 5.8 MB to 2.7 MB. The optimization is achieved by using CMake's MinSizeRel build type, which applies size-focused compiler optimizations (-Os flag).

Changes:

  • Added CMAKE_BUILD_TYPE environment variable export for dependency builds (though this has no effect)
  • Configured emcmake to use MinSizeRel build type for size-optimized compilation

Comment thread .github/workflows/publish.yml
@olehnikolaiev olehnikolaiev merged commit d529f39 into develop Feb 17, 2026
6 checks passed
@olehnikolaiev olehnikolaiev deleted the bite-ts-37/optimize-t-encrypt branch February 17, 2026 12:11
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable BITE encryption in edge runtimes

4 participants