perf(desktop): move five hot renderer paths from JS into Rust (#6024)