tobie/module-grapher — pull request #13 by cpojer (2012-11-22 18:43:57+00:00)
Title: Switch to the smallest possible module identifiers

This change makes module identifier as short as possible when using the minify option in modulr-node.

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/node_modules/module-grapher