Skip to content

Conversation

@StevenCostiou
Copy link
Member

Experiments of node access while stepping in Sindarin.
Now it lazily builds a cache of all possible bytecode offsets to their associated AST nodes and accesses this cache instead of searching nodes in the IR each time.

…ping all possible bytecode offsets to their associated AST node.

Instead of performing a search of the AST into the IR, it just builds the cache once and then only access the cache.
On simple benchmarking tests, it speeds-up the execution by 4 to 5 times.
@dupriezt dupriezt merged commit 7930c39 into master Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants