0

I have a question about using AssemblyScript in React project I already read some stuff about using AssemblyScript to increase performance but the question is when my project is not that big sth like a game or machine learning etc when I have a less computational project, is that ok to use AssemblyScript to increase performance for better user experience? if yes could you please tell me where and when it's better to use it?

Ali Sattarzadeh
  • 3,220
  • 1
  • 6
  • 20
  • 1
    It depends on what you want to write in it. Most of the time performance advantage will be neglectable, but code will be more challenging to read. – Konrad Jul 03 '22 at 11:54

1 Answers1

0

There is a page on the official AssemblyScript website that goes into a few scenarios that you may encounter and if it would make sense to use AssemblyScript or Javascript, or both, for performance reasons.

The main idea is, as you stated, that you benefit more from AssemblyScript if you have a compute-intensive application, a game or a webgl application, and for a blog or manipulating the DOM you can get away with using JavaScript.

As always with performance problems, you have to benchmark the result in practice.

TachyonicBytes
  • 700
  • 1
  • 8