composer/composer — pull request #1311 by Seldaek (2012-11-10 16:45:14+00:00)
Title: Optimize classmap generation by avoiding the use of token_get_all()

First of all this seems way faster than iterating over all tokens, but especially it reduces memory usage drastically for very large files (i.e. tcpdf problem in #1246)

To try this, you can run:

```
mkdir test
cd test
echo '{"require":{"symfony/symfony":"dev-master","tcpdf/tcpdf":"dev-master","zendframework/zendframework":"dev-master"}}' > composer.json
wget http://getcomposer.org/composer.phar
wget http://getcomposer.org/composer-classmap.phar
php composer.phar install --prefer-dist
cls
php composer.phar dump -o --profile && md5sum vendor/composer/autoload_classmap.php
php composer-classmap.phar dump -o --profile && md5sum vendor/composer/autoload_classmap.php
```

Then please paste the output you got in here.