Skip to content

Reduce wasm size by trimming parser and serialization deps#342

Open
KKould wants to merge 2 commits into
mainfrom
feat/reduce-serialization-size
Open

Reduce wasm size by trimming parser and serialization deps#342
KKould wants to merge 2 commits into
mainfrom
feat/reduce-serialization-size

Conversation

@KKould
Copy link
Copy Markdown
Member

@KKould KKould commented Jun 1, 2026

Summary

  • restrict sqlparser usage to the std feature and replace small removed sqlparser AST types locally
  • remove typetag/erased-serde/inventory/typeid by serializing evaluator/function signatures and rebuilding from factories/registries
  • make tables()/views() return lazy storage iterators and clean up related view drop API

Refs #341

Verification

  • cargo fmt --all --check
  • git diff --check origin/main..HEAD
  • cargo check -p kite_sql --no-default-features
  • cargo check -p kite_sql
  • cargo test -p kite_sql --lib
  • cargo tree -p kite_sql --no-default-features | rg "typetag|erased-serde|inventory|typeid" returned no matches
  • cargo build --release --target wasm32-unknown-unknown -p kite_sql --no-default-features

Wasm Size

Measured with:

cargo build --release --target wasm32-unknown-unknown -p kite_sql --no-default-features
Build Before (origin/main) After (this PR) Delta
raw wasm 16,172,075 bytes 10,534,315 bytes -5,637,760 bytes (-34.9%)
wasm-tools strip 16,083,714 bytes 10,445,954 bytes -5,637,760 bytes (-35.1%)

@KKould KKould self-assigned this Jun 1, 2026
@KKould KKould added enhancement New feature or request perf labels Jun 1, 2026
@KKould KKould force-pushed the feat/reduce-serialization-size branch from 385eb55 to 5c27386 Compare June 1, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request perf

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant