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

Approximately halve memory usage #66

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

iamrecursion
Copy link
Contributor

Summary

After the recent major refactor to fix a correctness bug in the type-checker, the inference engine continued to hang onto the execution result which it no longer needed. This is now no longer the case, resulting in an approximate halving of maximum memory usage.

In addition, this also makes the maximum number of bytes that can be operated on in a single VM memory operation configurable externally, providing another point through which library clients can tune memory usage.

This mitigates #65, but does not totally fix the underlying inefficiencies of the current value representation.

Details

N/A

Checklist

  • Code is formatted by Rustfmt.
  • Documentation has been updated if necessary.

After the recent major refactor to fix a correctness bug in the
type-checker, the inference engine continued to hang onto the execution
result which it no longer needed. This is now no longer the case,
resulting in an approximate halving of maximum memory usage.

In addition, this also makes the maximum number of bytes that can be
operated on in a single VM memory operation configurable externally,
providing another point through which library clients can tune memory
usage.
@iamrecursion iamrecursion added the enhancement New feature or request label Aug 31, 2023
@iamrecursion iamrecursion self-assigned this Aug 31, 2023
@iamrecursion iamrecursion merged commit 2ff4bf1 into main Aug 31, 2023
5 checks passed
@iamrecursion iamrecursion deleted the wip/ara/low-hanging-memory-fruit branch August 31, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant