documentcloud/backbone — pull request #1733 by gsamokovarov (2012-10-13 11:34:58+00:00)
Title: Use Model#attributes instead of Model#get

While there are some pretty good usages of `Model#get` (like the implementation of `Collection#pluck`), its there just for symmetry with set and I don't think it will change (it hasn't been touched for two years).

We can avoid the function overhead when model attribute access is needed internally. I have replaced `model.get` with `model.attributes` in the implementation of `Collection#where` and the underscore delegation of the `Collection` `attributeMethods` (`groupBy`, `countBy`, `sortBy`).

Its not a big speedup, but its not a complex change also.