Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Change contractState and instancesState to mutable variables.#786

Merged
koslambrou merged 1 commit intomainfrom
merge-djed-babbage-branch-patches-3
Oct 27, 2022
Merged

Change contractState and instancesState to mutable variables.#786
koslambrou merged 1 commit intomainfrom
merge-djed-babbage-branch-patches-3

Conversation

@koslambrou
Copy link
Contributor

@koslambrou koslambrou commented Oct 26, 2022

Cherry-picked from:

Summary:

This avoids bottleneck when updating InMemInstances, especially when an instance already exists. PutState of InMemInstances is adjusted so as to avoid full map update when instance already exists.

cc @etiennejf

Pre-submit checklist:

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
    • Formatting, PNG optimization, etc. are updated
  • PR
    • Self-reviewed the diff
    • Useful pull request description
    • Reference the ADR in the PR and reference the PR in the ADR (if revelant)
    • Reviewer requested

@koslambrou koslambrou marked this pull request as draft October 26, 2022 18:14
@koslambrou koslambrou changed the base branch from main to merge-djed-babbage-branch-patches-2 October 26, 2022 18:15
@koslambrou koslambrou marked this pull request as ready for review October 27, 2022 10:08
Copy link
Contributor

@sjoerdvisscher sjoerdvisscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except for cosmetics I don't feel qualified to review this...

@koslambrou koslambrou force-pushed the merge-djed-babbage-branch-patches-2 branch from cadb0af to 0882841 Compare October 27, 2022 11:59
@koslambrou koslambrou force-pushed the merge-djed-babbage-branch-patches-3 branch 2 times, most recently from 831a232 to 12dce8c Compare October 27, 2022 12:20
Base automatically changed from merge-djed-babbage-branch-patches-2 to main October 27, 2022 13:02
This avoids bottleneck when updating InMemInstances, especially when an
instance already exists. PutState of InMemInstances is adjusted so as to
avoid full map update when instance already exists.

Co-authored-by: Jann Müller <j-mueller@users.noreply.github.com>
@koslambrou koslambrou force-pushed the merge-djed-babbage-branch-patches-3 branch 2 times, most recently from e017bcb to bca56c8 Compare October 27, 2022 13:07
@koslambrou koslambrou merged commit acdf085 into main Oct 27, 2022
@koslambrou koslambrou deleted the merge-djed-babbage-branch-patches-3 branch October 27, 2022 14:07
kayvank pushed a commit that referenced this pull request Oct 27, 2022
This avoids bottleneck when updating InMemInstances, especially when an
instance already exists. PutState of InMemInstances is adjusted so as to
avoid full map update when instance already exists.

Co-authored-by: etiennjf <jean-frederic.etienne@iohk.io>
Co-authored-by: Jann Müller <j-mueller@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants