emberjs/ember.js — pull request #9561 by stefanpenner (2014-11-12 23:22:03+00:00)
Title: cleanup core object init argument passing

- don't allocate new array if no arguments exist
- don't do costly apply, if there are not multiple (or any) arguments to apply to

test run stats:

1 arguments 10153
2 arguments 490
3 arguments 0
4 arguments 5

(yes apps may use this differently, but ultimately the 1 argument case is the most common, and most hot-paths are in ember-corec)