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

Support loading gzip compressed models #2628

Merged
merged 1 commit into from
May 12, 2022
Merged

Conversation

joguSD
Copy link
Contributor

@joguSD joguSD commented Mar 3, 2022

This adds support for loading gzip compressed models (i.e. .json.gz files) which unblocks generating more optimized wheel builds of botocore. See #2365 for more discussion. As gzip may not be available on all platforms support for this should gracefully fallback to the old behavior of only checking for .json files.

Ideally, we'll be able to generate and distribute more optimized wheels where all models are compressed and will use these loaders instead.

@codecov-commenter
Copy link

codecov-commenter commented Mar 3, 2022

Codecov Report

Merging #2628 (47fbea3) into develop (39fd6c2) will decrease coverage by 0.00%.
The diff coverage is 92.30%.

@@             Coverage Diff             @@
##           develop    #2628      +/-   ##
===========================================
- Coverage    95.30%   95.29%   -0.01%     
===========================================
  Files           60       60              
  Lines        12222    12239      +17     
===========================================
+ Hits         11648    11663      +15     
- Misses         574      576       +2     
Impacted Files Coverage Δ
botocore/compat.py 92.61% <60.00%> (-1.14%) ⬇️
botocore/loaders.py 99.33% <100.00%> (+0.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 39fd6c2...47fbea3. Read the comment docs.

botocore/loaders.py Show resolved Hide resolved
@joguSD joguSD requested a review from kyleknap March 9, 2022 18:51
Copy link
Contributor

@nateprewitt nateprewitt left a comment

Choose a reason for hiding this comment

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

:shipit:

@joguSD joguSD merged commit 5c6da23 into boto:develop May 12, 2022
tgbugs added a commit to tgbugs/tgbugs-overlay that referenced this pull request Mar 20, 2023
in the context of boto/botocore#2365
.json.gz loading has been merged boto/botocore#2628
so we can take advantage of it by gzing all the json in the data folder
all the relevant tests pass so it seems that we are good to go
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.

4 participants