perf: selective snapshot hydration - #6016
Open
fresioAS wants to merge 3 commits into
Open
Conversation
Signed-off-by: Andreas Fredhøi <andreas.fredhoi@fresio.no>
Signed-off-by: Andreas Fredhøi <andreas.fredhoi@fresio.no>
fresioAS
marked this pull request as ready for review
September 11, 2026 15:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Avoids hydrating production snapshot payloads for models and standalone audits already defined in the local project.
Previously,
Context.load()hydrated every snapshot in the production environment to determine whether each node belonged to the current project or another project. The environment's compact snapshot metadata already contains the snapshot names needed to identify locally defined nodes.This change:
This primarily reduces Python-side snapshot deserialization and object hydration for projects with large production environments.
Test Plan
Live env (400 models)
plan1 40.17s <--> 33.16s 7.00s faster, 17.4%
plan2 41.41s <--> 33.36s 8.05s faster, 19.4%
plan3 38.41s <--> 32.48s 5.93s faster, 15.4%
average 40.00s <--> 33.00s 7.00s faster, 17.5%
Checklist
make styleand fixed any issuesmake fast-test)git commit -s) per the DCO