Skip to content

refactor: Use ConstVec for instructions in Executable#5096

Merged
mversic merged 2 commits intohyperledger-iroha:mainfrom
dima74:diralik/executable-box-instructions
Sep 26, 2024
Merged

refactor: Use ConstVec for instructions in Executable#5096
mversic merged 2 commits intohyperledger-iroha:mainfrom
dima74:diralik/executable-box-instructions

Conversation

@dima74
Copy link
Copy Markdown
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
Comment thread crates/iroha_data_model/src/visit.rs Outdated
Comment thread crates/iroha_data_model/src/transaction.rs Outdated
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
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.

Use Box<[InstructionBox]> in Executable

3 participants