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

WIP: inject closure-calls for loop externs in closures #1780

Closed
wants to merge 8 commits into from

Conversation

jaekwon
Copy link
Contributor

@jaekwon jaekwon commented Mar 15, 2024

This is an alternative implementation to #1768 and #1585 for #1135.
This should be much more performant overall, as loop externs are rare.

  • as pointed out by Maxwell, this would also need to work with GOTO implicit loops. Should be doable, but another approach would be to disallow this edge case (probably very rare).

UPDATE: noticed that "TestSearchEfficiency" is affected but the runtime is not because the closure is called synchronously.

@jaekwon jaekwon requested review from piux2, thehowl and moul as code owners March 15, 2024 23:49
@github-actions github-actions bot added the 📦 🤖 gnovm Issues or PRs gnovm related label Mar 15, 2024
Copy link

codecov bot commented Mar 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.75%. Comparing base (ac78e0b) to head (fba2746).
Report is 114 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1780       +/-   ##
===========================================
- Coverage   55.94%   45.75%   -10.20%     
===========================================
  Files         422      460       +38     
  Lines       64269    69518     +5249     
===========================================
- Hits        35956    31808     -4148     
- Misses      25483    35049     +9566     
+ Partials     2830     2661      -169     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

// nothing to transform
return n, TRANS_CONTINUE
}
panic("!!! ITS HAPPENING (insert ron paul jazz hands) !!!")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE: I haven't actually tested the running of this logic, yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"TestSearchEfficiency" is triggered by this but the tests have been passing because the closure is called synchronously. good sign that it is picked up by this panic, and probably a good one to focus on first.

// nothing to transform
return n, TRANS_CONTINUE
}
panic("!!! ITS HAPPENING (insert ron paul jazz hands) !!!")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ROFL! Epic panic message.

@jaekwon
Copy link
Contributor Author

jaekwon commented Jun 25, 2024

working on #2429 instead.

@jaekwon jaekwon closed this Jun 25, 2024
@thehowl thehowl deleted the dev/jae/loopexterns branch December 8, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🤖 gnovm Issues or PRs gnovm related
Projects
Status: Done
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants