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

Fix js parsing #1449

Merged
merged 7 commits into from
Apr 19, 2023
Merged

Fix js parsing #1449

merged 7 commits into from
Apr 19, 2023

Conversation

hhugo
Copy link
Member

@hhugo hhugo commented Apr 18, 2023

Attempt to fix #1444.

Compared to master:

  • max resident mem divided by 3 when parsing binaryen.es5.js
  • time reduced by ~33% when parsing binaryen.es5.js

Time and memory are closer to what they were with jsoo 5.0 but are still a little higher
@phated, do you want to give this a try ?

phated added a commit to grain-lang/libbinaryen that referenced this pull request Apr 19, 2023
@phated
Copy link
Contributor

phated commented Apr 19, 2023

Awesome!!! I just ran this on my mac and the numbers were roughly what I expected in 5.0 - I pushed to grain-lang/libbinaryen#78 to run it in our CI matrix too

hhugo added 3 commits April 19, 2023 22:50
Fix memory usage
Fix comment token disapearing during recovery
@hhugo
Copy link
Member Author

hhugo commented Apr 19, 2023

@phated, your CI seems to be happy. I'll merge this PR

@hhugo hhugo merged commit b643d96 into master Apr 19, 2023
@hhugo hhugo deleted the fix-js-parsing branch April 19, 2023 21:52
@hhugo hhugo restored the fix-js-parsing branch April 19, 2023 23:29
@hhugo hhugo deleted the fix-js-parsing branch April 19, 2023 23:30
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.

[BUG] Latest master takes up too much memory and fails with Fatal error: out of memory
2 participants