influxdata / influxdata/datafusion-udf-wasm
Build Optimization of WASM Payloads
- Dominant language
- Rust
- Stars
- 20
- Forks
- 3
- Avg merge
- 6h 20m
- Merged PRs (30d)
- 24
Description
# What
Apply some common tooling/configs to optimize our WASM payloads for speed & size.
# Why
Less payload code = faster UDFs.
# How
This might require #30 first.
- [ ] check Rust build configs (maybe use [cargo-wizard](https://github.com/kobzol/cargo-wizard))
- [ ] use `wasm-opt` once it supports WASIp2, see https://github.com/WebAssembly/binaryen/issues/7712 and https://github.com/WebAssembly/binaryen/issues/6728
- [ ] see if [wizer](https://github.com/bytecodealliance/wizer) helps
- [ ] see if [weval](https://github.com/bytecodealliance/weval) helps
Contributor guide
Research direction
Start by reviewing prerequisite issue #30 and the Rust build configuration. Investigate cargo-wizard, wasm-opt's WASIp2 support, wizer, and weval for their impact on speed and payload size. Done means the applicable optimization approach is selected and the WASM payload improvement is demonstrated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, wasm
- Domain
- build-system, performance
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100