documentcloud/backbone — pull request #1997 by caseywebdev (2012-12-20 22:27:33+00:00)
Title: Optimize `add`

As we learned from refactoring events, `push` is faster than `splice`. Also see [this jdalton perf](http://jsperf.com/splice-vs-push/2). Here is a comparison between the patch and master: http://jsperf.com/bb-add-perf

The difference is small due to all of the other overhead in `add`, but I would say significant for a function that can potentially handle very large arrays.