Skip to content

Conversation

@zhjwpku
Copy link
Collaborator

@zhjwpku zhjwpku commented Dec 28, 2025

No description provided.


/// \brief Cache structure for storing loaded manifests
struct ManifestsCache {
std::vector<ManifestFile> all_manifests;
Copy link
Member

Choose a reason for hiding this comment

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

Can we avoid caching 2X manifest files here? As we return std::span for different manifests, perhaps we can use a single vector to store data manifests in the head and then delete manifests in the tail, and then use the split point to construct different spans to return.

}

/// \brief Default constructor
Snapshot();
Copy link
Member

Choose a reason for hiding this comment

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

If we have to add ctor to it, what about removing the default ctor and adding ctor for all member variables and Snapshot::Make for validated object creation? The Java BaseSnapshot has two ctors for v1 and others respectively.

@zhjwpku zhjwpku force-pushed the add_cached_manifests_snapshot branch from 39bd868 to 8df5115 Compare December 29, 2025 15:12
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.

2 participants