2026-07-26 07:01 UTC
So I needed a WebP encoder for a Go project where I had #CGO disabled. I found there is an option using #libwebp compiled to #wasm running on #wazero, but that's pretty slow and uses lots of memory.
So I made a pure #GoLang encoder, ported from a Rust encoder then optimized: https://github.com/SeriousBug/webp-go-pure#webp-go-pure
I managed to get better performance than the WASM version! Both encoding speed and memory use, although compression rate and quality is a bit worse.
#webdev #webp
Replies (0)
No replies.