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

perf: Reduce memory usage of CommittedTransaction #5089

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

dima74
Copy link
Contributor

@dima74 dima74 commented Sep 19, 2024

Context

Related: #5083

Solution

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)

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.

@mversic
Copy link
Contributor

mversic commented Sep 20, 2024

relevant #5001

@dima74 dima74 force-pushed the diralik/transaction-error-box branch from ffaf5bf to f7d4fc8 Compare September 20, 2024 12:43
dima74 and others added 2 commits September 20, 2024 16:51
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
Co-authored-by: Marin Veršić <marin.versic101@gmail.com>
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
@mversic mversic merged commit 0d1fe18 into hyperledger-iroha:main Sep 23, 2024
16 of 18 checks passed
@dima74 dima74 deleted the diralik/transaction-error-box branch September 23, 2024 11:28
# 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.

3 participants