Hello satya Priya Sundar!
There are some information in WWW about.
So I am not experienced in it, but read about WebAssembly and I can say that it looks like a future because there are some new features like multithreading and already compiled sites by server, wherefore WA is much faster than JS.
P.S. my understanding can be wrong
In general, Wasm is faster to download and start executing because of its smaller file size and because it can skip steps that JS needs to make. It can also be compiled as it’s being downloaded.
WebAssembly gives consistent and predictable performance.
Browsers have put a lot of effort into making JS faster over the years so JS execution speed is pretty good especially if the code has been optimized. Execution speed will depend on the browser. From what I’ve seen Wasm is usually faster but, in some browsers, not by much.
If a developer isn’t aware of certain things, the initialization time of a module can be slowed down. One way to do that is if you ask for a lot of pthreads. Threads use web workers under the hood and, with the Emscripten toolchain anyway, these need to be spun up into a thread pool when the module is instantiated. Web workers are not light weight and, if there are enough being spun up, it’s noticeable.
Speaking of web workers, if a module isn’t needed right away, they can be used to download and compile a module. The module can then be instantiated to run in the worker or the compiled code can be passed to the main thread and instantiated there.
WebAssembly has other features coming soon to improve performance further like SIMD and bulk memory operations.
I think the number of JS developers will drop some because people will switch back to their preferred language but both tools have a use so I don’t see JS going anywhere for a while.
hello, satya Priya Sundar!
Wasm is faster for executing web application
Wasm is improve the re-usability of the code. Wasm there’s only one step to complete the running your app in any browser
with Web-Assembly there’s only one step to complete — the compilation step — for running your app in any browser as well as mobile portability is one of its main strengths
Web-assembly's built as a target for writing in-browser software.
.NET Developer at iFour Technolab Pvt LTd
If tomatoes are a fruit, then ketchup must be a jam. Taste this tiny ad: