Rewrite Rust components in C (yes, seriously.)

(#996) Feature Declined meta performance

Thread

Comment by @oax90
RexSystem 1 vote originally by @oax90 on GitHub 1 reply
Right now in the refactor branch Rust is used only in the client for a simple purpose. Is there really a need to keep dependency on Rust for that? I rather keep it full TS or use Go or C.
pub use animation::is_animated_image;
pub use apng::crop_and_rotate_apng;
pub use gateway::decompress_zstd_frame;
pub use gif::crop_and_rotate_gif;
pub use static_image::crop_and_rotate_image;
Comment by @Speykious
RexSystem 1 vote originally by @Speykious on GitHub
Image decoding and processing is a quite resource-intensive task, so it makes sense to dedicate that to a lower level language. Given that it all needs to run on the browser, it has to be compiled in WASM, and Rust is kind of the best tool for that job. C could also do that job, just not as well.