Replies: 1 comment 2 replies
-
Node (V8) compiles code while Jint is an interpreter so there will always a be a large performance difference based on that. There has been some discussion whether Jint should do some sort of tiered compilation when something is deemed as "hot". Of course if you can pinpoint a specific place in Jint that could be improved, say, you have use case where you call specific JS function (like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The way I develop for JINT exploits VS Code and node to get debug, and I have a custom pipeline that resolves import statements as the files they reference, with recursive descent and a name table to prevent duplication. There's some scrubbing to get rid of
export
keywords. If you called it a linker you wouldn't be wrong.It works pretty well, and while it won't help you with direct or indirect dependencies on node, it does make it easy to organise code while developing it.
As a result it is now convenient to run the same code on node or JINT and gather metrics, and I notice that the same code is about forty times faster on node. Is any of this stuff interesting to people working on JINT? I could package the toolchain, perhaps as a VS Code extension.
Beta Was this translation helpful? Give feedback.
All reactions