Project

General

Profile

Actions

Bug #14219

closed

package size of Ruby 2.5 is larger than 2.4

Added by hsbt (Hiroshi SHIBATA) over 6 years ago. Updated almost 6 years ago.

Status:
Rejected
Target version:
-
[ruby-core:84396]

Description

A package of Ruby 2.5 was increased file size (about 15MB) from Ruby 2.4.

  • ruby-2.4.3.tar.xz: 9.6M
  • ruby-2.5.0-rc1.tar.xz: 25M

It was caused by spec directory.

~/D/ruby-2.4.3 > du -md 1 | sort -rn | head 
79	.
26	./enc
14	./ext
12	./test
7	./lib
7	./doc
3	./gems
2	./sample
1	./win32
1	./tool

~/D/ruby-2.5.0-rc1 > du -md 1 | sort -rn | head 
121	.
40	./spec
26	./enc
14	./ext
12	./test
9	./lib
7	./doc
3	./gems
2	./sample
1	./win32

After releasing 2.5, I (and eregon?) try to reduce it size or remove them from tar package.


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #12733: Bundle bundler to ruby coreClosedhsbt (Hiroshi SHIBATA)Actions

Updated by normalperson (Eric Wong) over 6 years ago

wrote:

Bug #14219: package size of Ruby 2.5 is larger than 2.4
https://bugs.ruby-lang.org/issues/14219

  • ruby-2.4.3.tar.xz: 9.6M
  • ruby-2.5.0-rc1.tar.xz: 25M

It was caused by spec directory.

There's also a lot of bundler vcr data which is already
gz compressed, so not recompressible with xz.

spec/rubyspec/ still exists in SVN and it looks like there's a
lot of empty directories underneath. "git svn" ignores
empty directories, but I guess the tarball is created from SVN.
We can remove those empty trees ASAP and save our users' inodes.

Actions #2

Updated by naruse (Yui NARUSE) over 6 years ago

  • Target version deleted (2.6)

Updated by Eregon (Benoit Daloze) over 6 years ago

Could someone remove spec/rubyspec in SVN? (it's still present in the 2.5.0 tarball)
I did a "git mv" if I recall correctly, but it seems git-svn did not handle this case correctly.

I think it makes sense to keep spec/mspec and spec/ruby, just like we keep test/, if one can run them from the tarball (make test-spec works).

ruby-2.5.0.tar.xz is 11.3 MB so that seems reasonable.

Updated by normalperson (Eric Wong) over 6 years ago

wrote:

Could someone remove spec/rubyspec in SVN? (it's still present in the 2.5.0 tarball)

Done in r61506

I did a "git mv" if I recall correctly, but it seems git-svn did not handle this case correctly.

Sorry for the confusion, git itself doesn't detect directory renames, yet,
so git svn can't handle it, yet... It's being worked on for git proper,
so git-svn might be able to do it one day, too:

https://public-inbox.org/git/20171129014237.32570-1-newren@gmail.com/

Actions #5

Updated by hsbt (Hiroshi SHIBATA) about 6 years ago

Updated by hsbt (Hiroshi SHIBATA) almost 6 years ago

  • Status changed from Assigned to Rejected

I postpone merging bundler into Ruby core. I will close this by stating it again.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0