composer/composer — pull request #2473 by staabm (2013-12-03 08:28:21+00:00)
Title: wrap call_user_func_array in a wrapper method which optimizes calls with at max 9 args.

on my machine this make things faster.

with the patch
```
php bin/composer update --profile --dry-run
Memory usage: 31.88MB (peak: 57.62MB), time: 7.24s
```

without the patch
```
composer update --profile --dry-run
Memory usage: 31.88MB (peak: 56.62MB), time: 8.13s
```

measured it ~20 times and its roughly 1sec faster including the patch (though peak memory rised 1MB).

In case you like it we could also add unit-tests.