tobie/modulr-node — pull request #28 by cpojer (2012-11-23 01:02:27+00:00)
Title: Minify module identifiers to make them as small as possible.

This change makes module identifier as short as possible when using the minify option.

MD5-Hashes are 32-characters long and can have a slight impact on file size, depending on the scale of a project. This new approach uses a regular counter and encodes the module id as base36 String. The advantage is that module identifiers will almost certainly stay within a two character limit as there are 1,296 possible two-character module ids.

File size impact in our application ( https://github.com/auphonic/auphonic-mobile ):
MD5-Hashes: 283k uncompressed, 68k gzip compressed
Strings: 272k uncompressed, 63k gzip compressed

As you can see, this gives us 5k (!) when using gzip compression. Feel free to confirm this yourself by downloading the git repository, running npm install and Scripts/compile with and without the change applied in node_modules/modulr-node