LottieFiles / dotlottie-rs

A universal, high-performance Lottie and dotLottie player built with Rust. Offers smooth rendering across platforms, low resource consumption, and extensive compatibility. Features FFI bindings for C/C++, Kotlin, Swift, and WASM for seamless integration in Android, iOS, and Web projects.
https://developers.lottiefiles.com/docs/dotlottie-player/
MIT License
154 stars 9 forks source link

WASM binary size optimization #107

Open samuelOsborne opened 7 months ago

theashraf commented 4 months ago

We can remove the zip library and create a simple zip walker ready to scan the central directory of the zip binary. Once we encounter a compressed entry, we can deflate it using libdeflater, a compact and performant library. This approach should reduce the size by at least ~100KB

theashraf commented 4 months ago

Marker support is now available in ThorVG, so we can utilize it to eliminate our custom markers implementation, saving a few kilobytes