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

パッケージ版のファイルサイズを削減 #469

Merged
merged 1 commit into from
Jan 7, 2015

Conversation

machu
Copy link
Member

@machu machu commented Jan 3, 2015

パッケージ版のファイルサイズが50MB弱となっていて、その多くを同梱のgemが占めています。不要なファイルをパッケージから除くことで、ファイルサイズを削減します。

  • .bundle/ruby/*/cache/ に含まれるgemファイル
  • 各gemの lib, data 以外のディレクトリ

これにより、ファイルサイズが基本セットで2MB, フルセットで6MB程度となります。

実際には、gems/gemoji-2.1.0/images/emoji/unicodegems/fastimage-1.6.6/test/fixturesがサイズの大部分を占めるので、ここだけ狙い撃ちで消しても効果あると思います。gemojiライブラリは絵文字有無の判定だけで使っているようなので、imagesディレクトリは使っていません。

tdtds added a commit that referenced this pull request Jan 7, 2015
パッケージ版のファイルサイズを削減
@tdtds tdtds merged commit 2ed49b4 into master Jan 7, 2015
@tdtds tdtds deleted the reduse-package-filesize branch January 7, 2015 08:18
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