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

refactor(registry): Migrate Registry to use MemoryManager instead of raw stable memory #3700

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

max-dfinity
Copy link
Contributor

@max-dfinity max-dfinity commented Jan 30, 2025

What

Use MemoryManager instead of dfn_core's memory tools for saving and loading the protobuf on upgrades.

Why

To allow moving registry records into stable memory, so that registry can scale, we first want to allow for multiple memory regions to be available so that different classes of objects can be stored.

Note, this was tested using the golden_state test and adding an additional check that registry state is still intact.

@max-dfinity max-dfinity marked this pull request as ready for review January 31, 2025 23:47
@max-dfinity max-dfinity requested a review from a team as a code owner January 31, 2025 23:47
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

If this pull request affects the behavior of any canister owned by
the Governance team, remember to update the corresponding
unreleased_changes.md file(s).

To acknowldge this reminder (and unblock the PR), dismiss this
code review by going to the bottom of the pull request page, and
supply one of the following reasons:

  1. Done.

  2. No canister behavior changes.

@max-dfinity max-dfinity force-pushed the msum/registry-to-memory-manager branch from 9776875 to 6ce91c9 Compare February 1, 2025 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants