Remember that rubyc includes all the files from the current directory in the built executable
This means there will be:
specs/ ~ 120 files, 204kb
build/ ~10 files, 12kb
examples/ ~96 files, 148kb
The files in root, README.md, LICENSE, Gemfile*, .travis.yml, ...
In addition:
rubyc seems to install all the development dependencies (rspec, bundler, rake, fakefs, rubocop) into the virtual ruby environment. Removing those from the .gemspec before compilation yields a binary that is both 2.5% larger and takes almost double the time to spin up for an unknown reason. 🤔
The
rubyc
README states:This means there will be:
specs/
~ 120 files, 204kbbuild/
~10 files, 12kbexamples/
~96 files, 148kbREADME.md
,LICENSE
,Gemfile*
,.travis.yml
, ...In addition:
rubyc
seems to install all the development dependencies (rspec
,bundler
,rake
,fakefs
,rubocop
) into the virtual ruby environment. Removing those from the.gemspec
before compilation yields a binary that is both 2.5% larger and takes almost double the time to spin up for an unknown reason. 🤔