Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoided using temp.js #48

Merged
merged 2 commits into from
Jan 4, 2024
Merged

avoided using temp.js #48

merged 2 commits into from
Jan 4, 2024

Conversation

johan-t
Copy link
Contributor

@johan-t johan-t commented Jan 4, 2024

What issue did you fix?

We were using a file temp.js to save the function before parsing them with the AST. This causes unnecessary writes and reads to be done, which caused the script to be quite slow.

Fixes: #44

Quick description of your approach:

Instead of creating temp.js and saving it we are directly parsing the code as a string.

Checklist before requesting a review:

  • Remove all uneccessary debug print statements
  • Make sure all tests pass
  • Make sure there are enough comments to understand your code

@johan-t johan-t merged commit a84f096 into main Jan 4, 2024
1 check passed
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.

avoid using temp.js as much as it is currently done in get_function_data
1 participant