Skip to content

Conversation

@BenBaryoPX
Copy link
Contributor

  • Replace estraverse with a local implementation and remove the dependency
  • Refactor code to streamline node extraction and scope mapping
  • Add comments to the code
  • Remove async implementation which is no longer more performant than the sync version
  • Replace external log function in the Arborist with the logger
  • Set the scriptHash only on the root node instead of on each node

… and move the rest of the logic out of the `traverse` method.
…es according to the start location of the scope node.
Add comments explaining the process.
Remove async functions as they are no longer more performant than the sync versions
Refactor code to improve performance.
Refactor code to improve performance.
- Set scriptHash only on the root element instead of iterating over the entire tree.
- Replace +new Date() with Date.now() to improve performance
@BenBaryoPX BenBaryoPX self-assigned this Dec 15, 2024
@BenBaryoPX BenBaryoPX merged commit 8acd702 into main Dec 15, 2024
3 checks passed
@BenBaryoPX BenBaryoPX deleted the perf_improvements branch December 15, 2024 13:55
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.

2 participants