'Best way to do expensive computations in a React Native app
Let's say I want to make an app that shows the result of an expensive computation like the multiplication of 400x400 matrices for example. What would be the fastest way to make these computations in a React Native app ?
My first thought was using something like Rust and compiling it to WASM, but this doesn't seem possible in React Native. I also saw that using the Hermes engine could make the app faster, but I don't know if that would be fast enough this case.
Also, if I used Java and Swift to use "native" code on the phone, would that make any difference in the speed of the computation ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
