Skip to content

Performance of Devicescript #179

Answered by mmoskal
louisvangeldrop asked this question in Q&A
Discussion options

You must be logged in to vote

Here is a paper we did on a previous project that was compiling TS to native ARM code.

https://www.microsoft.com/en-us/research/uploads/prod/2019/09/static-typescript-draft2.pdf

DeviceScript is using a VM interpreter which is slower (but portable - we currently run on RISC-V, ARM, Xtensa, x86, WASM, and probably much more).

For low level manipulations I would guess anything between 10x-100x.

Also note that high performance is not the primary goal here - the goal is good developer experience. We'll work on perf when it becomes a problem (possibly using methods from the article linked above).

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
3 replies
@louisvangeldrop
Comment options

@louisvangeldrop
Comment options

@mmoskal
Comment options

Answer selected by pelikhan
Comment options

You must be logged in to vote
8 replies
@mmoskal
Comment options

@louisvangeldrop
Comment options

@louisvangeldrop
Comment options

@pelikhan
Comment options

@louisvangeldrop
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
good first issue Good for newcomers question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #175 on March 06, 2023 19:24.