Skip to content
New issue

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

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

Already on GitHub? # to your account

Opcode to clear memory range #89

Closed
adlerjohn opened this issue Feb 19, 2021 · 0 comments · Fixed by #92
Closed

Opcode to clear memory range #89

adlerjohn opened this issue Feb 19, 2021 · 0 comments · Fixed by #92
Assignees
Labels
comp:FVM Component: FuelVM enhancement New feature or request

Comments

@adlerjohn
Copy link
Contributor

While the MALLOC opcode can be used to reserve a memory range, it doesn't clear memory so as to support constant-cost reserving. Currently, clearing this would be done by clearing one word at a time in a loop, which is unnecessarily expensive for what will be a widely-used usecase.

A new opcode should be added that simply zeroes out a range of memory.

@adlerjohn adlerjohn added enhancement New feature or request comp:FVM Component: FuelVM labels Feb 19, 2021
@adlerjohn adlerjohn self-assigned this Feb 19, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
comp:FVM Component: FuelVM enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant