By the time you build your solution in native DOM, you've missed the market.
This is why we don't write applications in assembler.
If performance is your only metric, write Rust and target WASM. But that's probably not the right solution for 95% of cases.