Why is pyscript is so slow

If pyscript will slow . There is no adventage of pyscript in web devlopment . I think we have to make pyscript like javascript. that excute there code directly. Not use webassembly and translate there code other language like javascript

Can you add more detail and context? What is slow about PyScript? I have no problems with performance.

A couple of notes:

  • pyscript is very very new! We are exploring what is possible before focussing on optimising for performance
  • probably you are worried about initialisation time, which will get much better as we improve the story around packaging and more pyscript is cached by your browser and the CDN
  • webassembly does NOT translate python to JS, it directly runs Cpython using the browser’s runtime. It can be almost as fast as python running in a standalone process.

I use a low spec laptop to check performance of pyscript. Here many time pyscript failed to run . It’s excution time is too much. Where js is too quick on that laptop.

I am student . Should I go for js or pyscript .

Should I go for js or pyscript .

pyscript is not (yet) a language that’s in use in real production webapps.

My thinking…If your goal is to do web sites, stick with JS. I don’t believe PyScript is really targeting that.

If your goal is Python and you want a UI, Pyodide/PyScript is interesting.

The tough spot is in between. If your goal is web applications and you aren’t yet committed to one or the other…hopefully PyScript becomes more of a competitor there.

1 Like