Skip to content

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

3 participants