Skip to content

Instantly share code, notes, and snippets.

@dagolden
Created November 17, 2010 13:58
Show Gist options
  • Save dagolden/703401 to your computer and use it in GitHub Desktop.
Save dagolden/703401 to your computer and use it in GitHub Desktop.
impact of removing stuff from stock perl 5.12.2
$ cd /opt/perl/v5.12.2-stock
$ du --summarize
76124 .
$ ~/git/utility-scripts/strip-pod .
$ du --summarize
72504 .
$ find . -iname "*.pod" -exec /bin/rm {} ";"
$ du --summarize
65052 .
$ rm -rf lib/5.12.2/unicore/
$ du --summarize
48088 .
$ rm -rf lib/5.12.2/x86_64-linux-ld/auto/Encode/JP
$ rm -rf lib/5.12.2/x86_64-linux-ld/auto/Encode/KR
$ rm -rf lib/5.12.2/x86_64-linux-ld/auto/Encode/CN
$ rm -rf lib/5.12.2/x86_64-linux-ld/auto/Encode/TW
$ du --summarize
38476 .
$ du -S | sort -rn | head -15
9440 ./man/man1
8216 ./man/man3
4264 ./lib/5.12.2/x86_64-linux-ld/CORE
1896 ./bin
1308 ./lib/5.12.2/Unicode/Collate
1068 ./lib/5.12.2
860 ./lib/5.12.2/Module
740 ./lib/5.12.2/x86_64-linux-ld/auto/POSIX
568 ./lib/5.12.2/x86_64-linux-ld/auto/Unicode/Normalize
512 ./lib/5.12.2/Pod
500 ./lib/5.12.2/CPAN
492 ./lib/5.12.2/ExtUtils
420 ./lib/5.12.2/x86_64-linux-ld/auto/Encode/Byte
416 ./lib/5.12.2/x86_64-linux-ld
320 ./lib/5.12.2/x86_64-linux-ld/auto/re
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment