CommittedTransaction::error takes 200 bytes and is None in case of a successful transaction. Using Option<Box<...> reduces memory usage of iroha approximately by 10% (considering that all transactions are successful and with testing configuration as in #5083)
Context
Related: #5083
Solution
CommittedTransaction::error
takes 200 bytes and isNone
in case of a successful transaction. UsingOption<Box<...>
reduces memory usage of iroha approximately by 10% (considering that all transactions are successful and with testing configuration as in #5083)Checklist
CONTRIBUTING.md
.