Skip to content

Sysvar cache v2 #5506

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Sysvar cache v2 #5506

wants to merge 1 commit into from

Conversation

ripatel-fd
Copy link
Contributor

Centralize all sysvar accesses through a central write-through cache.
The cache is position-independent, flat, self-contained, and thread-safe.
So it can be copied or mapped into different processes arbitrarily.
Removes some bank fields that are redundantly stored as sysvars.

@ripatel-fd ripatel-fd marked this pull request as draft July 1, 2025 15:52
@ripatel-fd ripatel-fd changed the title wip Sysvar cache v2 Jul 1, 2025
);

/* fd_sysvar_cache_recover rebuilds the sysvar cache from the account
database. Logs warnings in case sysvar datas fail to deserialize.
Copy link
Contributor

Choose a reason for hiding this comment

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

Return int? Caller is going to want to terminate

@ripatel-fd ripatel-fd force-pushed the ripatel/sysvar-cache-2 branch from c9f02f1 to dd704c8 Compare July 10, 2025 20:47
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