Skip to content

Switch to json for snapshot metadata #120

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

Closed
wants to merge 1 commit into from

Conversation

yifuwang
Copy link
Contributor

Summary:
When the number of entries in the snapshot metadata is very large, yaml
serialization becomes a bottleneck and there's little we can do to optimize.
Fortunately, when the metadata is serialized via json it is still valid yaml.
Technically, the snapshot metadata format is still yaml.

Reviewed By: raypeng

Differential Revision: D40626156

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Oct 25, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D40626156

@codecov
Copy link

codecov bot commented Oct 25, 2022

Codecov Report

Merging #120 (c51d92b) into main (cffb0cc) will decrease coverage by 4.81%.
The diff coverage is 80.00%.

@@            Coverage Diff             @@
##             main     #120      +/-   ##
==========================================
- Coverage   91.80%   86.98%   -4.82%     
==========================================
  Files          31       31              
  Lines        2550     2551       +1     
==========================================
- Hits         2341     2219     -122     
- Misses        209      332     +123     
Impacted Files Coverage Δ
torchsnapshot/manifest.py 96.69% <75.00%> (+0.01%) ⬆️
torchsnapshot/snapshot.py 99.05% <100.00%> (ø)
torchsnapshot/storage_plugins/gcs.py 0.00% <0.00%> (-78.90%) ⬇️
torchsnapshot/storage_plugins/s3.py 25.00% <0.00%> (-65.00%) ⬇️
torchsnapshot/storage_plugin.py 43.75% <0.00%> (-21.88%) ⬇️
torchsnapshot/memoryview_stream.py 63.33% <0.00%> (-6.67%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

yifuwang pushed a commit to yifuwang/torchsnapshot that referenced this pull request Oct 25, 2022
Summary:
Pull Request resolved: pytorch#120

When the number of entries in the snapshot metadata is very large, yaml
serialization becomes a bottleneck and there's little we can do to optimize.
Fortunately, when the metadata is serialized via json it is still valid yaml.
Technically, the snapshot metadata format is still yaml.

Reviewed By: raypeng

Differential Revision: D40626156

fbshipit-source-id: 3651ad082733f5c52a42cb3df7080d71cdcec268
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D40626156

Summary:
Pull Request resolved: pytorch#120

When the number of entries in the snapshot metadata is very large, yaml
serialization becomes a bottleneck and there's little we can do to optimize.
Fortunately, when the metadata is serialized via json it is still valid yaml.
Technically, the snapshot metadata format is still yaml.

Reviewed By: raypeng

Differential Revision: D40626156

fbshipit-source-id: e264ad8f37335b8d7565dbf762a567c1007551a7
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D40626156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants