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

[optimization] Executor: validate by value, not by reference #4082

Closed
Arjentix opened this issue Nov 24, 2023 · 0 comments
Closed

[optimization] Executor: validate by value, not by reference #4082

Arjentix opened this issue Nov 24, 2023 · 0 comments
Assignees
Labels
iroha2-dev The re-implementation of a BFT hyperledger in RUST Optimization Something isn't working as well as it should Refactor Improvement to overall code quality

Comments

@Arjentix
Copy link
Contributor

Currently Executor entrypoint functions get all parameters by value. But then validate them by reference because of Visit trait. This causes some extra clonning.

This problem can be avoided. Probably need to reconsider Visit trait. Especially after #3941

@Arjentix Arjentix added iroha2-dev The re-implementation of a BFT hyperledger in RUST Refactor Improvement to overall code quality Optimization Something isn't working as well as it should labels Nov 24, 2023
@Arjentix Arjentix changed the title [optimisation] Executor: validate by value, not by reference [optimization] Executor: validate by value, not by reference Nov 24, 2023
mversic added a commit to mversic/iroha that referenced this issue Jan 4, 2024
mversic added a commit to mversic/iroha that referenced this issue Jan 4, 2024
mversic added a commit to mversic/iroha that referenced this issue Jan 4, 2024
mversic added a commit to mversic/iroha that referenced this issue Jan 4, 2024
mversic added a commit to mversic/iroha that referenced this issue Jan 4, 2024
@mversic mversic self-assigned this Jan 4, 2024
mversic added a commit to mversic/iroha that referenced this issue Jan 9, 2024
mversic added a commit to mversic/iroha that referenced this issue Jan 9, 2024
mversic added a commit to mversic/iroha that referenced this issue Jan 10, 2024
mversic added a commit to mversic/iroha that referenced this issue Jan 10, 2024
mversic added a commit to mversic/iroha that referenced this issue Jan 10, 2024
mversic added a commit to mversic/iroha that referenced this issue Jan 10, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 16, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 16, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 19, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 19, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 19, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 19, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 19, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 19, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 19, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 19, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 19, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 19, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 20, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 20, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 20, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 20, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 20, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 20, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 20, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 26, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 26, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 26, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 26, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 26, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 26, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 27, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 27, 2024
mversic added a commit to mversic/iroha that referenced this issue Feb 27, 2024
mversic added a commit that referenced this issue Feb 28, 2024
* [fix] #4082: Remove cloning for ISI execution in wasm
* [fix] #4082: Remove cloning for query execution in wasm

Signed-off-by: Marin Veršić <[email protected]>
@DCNick3 DCNick3 closed this as completed Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iroha2-dev The re-implementation of a BFT hyperledger in RUST Optimization Something isn't working as well as it should Refactor Improvement to overall code quality
Projects
None yet
Development

No branches or pull requests

3 participants