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

refactor: Use ConstVec for instructions in Executable #5096

Merged

Conversation

dima74
Copy link
Contributor

@dima74 dima74 commented Sep 23, 2024

Context

Meta: #5083
Fixes #5092

Solution

Use Box<[InstructionBox]> instead of Vec to ensure we don't waste any memory on a buffer.
See #5083 (comment), #5083 (comment), and #5083 (comment) for details

Checklist

  • I've read CONTRIBUTING.md.
  • (optional) I've written unit tests for the code changes.
  • All review comments have been resolved.
  • All CI checks pass.

DCNick3
DCNick3 previously approved these changes Sep 23, 2024
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
@dima74 dima74 force-pushed the diralik/executable-box-instructions branch from a2708bf to 7240b99 Compare September 25, 2024 15:14
@mversic mversic merged commit 659f969 into hyperledger-iroha:main Sep 26, 2024
17 of 18 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Box<[InstructionBox]> in Executable
3 participants