Skip to content

Tech Detail Best Practices

Sam Cao edited this page Jun 28, 2023 · 1 revision

Performance

Always Save AST Node Properties

The nodes in the AST are backed up by the Jaspiler back-end. Accessing properties of those nodes implies the calls from the front-end to the back-end with considerable performance overhead.

The performance can be improved if those properties are only read or written once, in other words, always save the properties in local JavaScript variables.