Skip to content

Limit packaged files#272

Merged
tjschuck merged 1 commit into
bcrypt-ruby:masterfrom
pusewicz:patch-1
Nov 17, 2023
Merged

Limit packaged files#272
tjschuck merged 1 commit into
bcrypt-ruby:masterfrom
pusewicz:patch-1

Conversation

@pusewicz
Copy link
Copy Markdown
Contributor

Limit files included in the gem to the ones that are necessary.

This skips shipping the gem with directories such as .github, spec and other files that are not normally accessible and arguably should be skipped.

This saves us some bytes in transfer and disk space on all the computers these gems are downloaded to.

Limit files included in the gem to the ones that are necessary.

This skips shipping the gem with directories such as `.github`, `spec` and other files that are not normally accessible and arguably should be skipped.

This saves us some bytes in transfer and disk space on all the computers these gems are downloaded to.
Copy link
Copy Markdown
Collaborator

@tjschuck tjschuck left a comment

Choose a reason for hiding this comment

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

Even though we're talking kilobytes (228 kB -> 164 kB), this is still a -28% change, which seems meaningful enough!

@tjschuck
Copy link
Copy Markdown
Collaborator

Test failure is unrelated: ruby/setup-ruby#496

@tjschuck tjschuck merged commit 7210681 into bcrypt-ruby:master Nov 17, 2023
@pusewicz pusewicz deleted the patch-1 branch November 17, 2023 16:07
@tjschuck
Copy link
Copy Markdown
Collaborator

New version pushed and tagged.

Even though we're talking kilobytes (228 kB -> 164 kB), this is still a -28% change, which seems meaningful enough!

It looks like the packaged/pushed versions aren't quite the same cuts, but still improvements, considering just how often this gem gets downloaded:

3.1.19 3.1.20 Percent Change
C, Zipped (as .gem) 56K 48K -14%
C, Expanded 60K 52K -13%
Java, Zipped (as .gem) 72K 64K -11%
Java, Expanded 76K 68K -10%

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