You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compiler: Extend the parser to ignore top-level objects #1047
We're extending the acornjs parser to ignore top-level(large json objects) objects in job codes. This is to improve memory usage during compiler transformations
This got too hairy: @doc-han managed to skip tokenisation for the objects in acorn, thus cutting them out of the tree. But printing - reassembling the sourece - gets super difficult because you need to splice the ignored objects back in. Not nice.
We're abandoning this in favour of easier targets.
Activity
josephjclark commentedon Oct 7, 2025
This got too hairy: @doc-han managed to skip tokenisation for the objects in acorn, thus cutting them out of the tree. But printing - reassembling the sourece - gets super difficult because you need to splice the ignored objects back in. Not nice.
We're abandoning this in favour of easier targets.