Vec<InstructionBox> in some cases allocates an initial buffer with size 4 (https://github.com/hyperledger/iroha/issues/5083#issuecomment-2364144603). InstructionBox is a large type (176 bytes), so it is worth replacing it with a read-only Box<[InstructionBox]> to be sure we don't waste memory on unused buffer capacity.
Vec<InstructionBox>
in some cases allocates an initial buffer with size 4 (https://github.com/hyperledger/iroha/issues/5083#issuecomment-2364144603).InstructionBox
is a large type (176 bytes), so it is worth replacing it with a read-onlyBox<[InstructionBox]>
to be sure we don't waste memory on unused buffer capacity.