Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: Reduce memory usage of CommittedTransaction #5089

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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
Co-authored-by: Marin Veršić <[email protected]>
Signed-off-by: Dmitry Murzin <[email protected]>
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.

3 participants