bugsnag/bugsnag-ruby — pull request #138 by samwgoldman (2014-08-03 21:48:09+00:00)
Title: Eliminate allocations in run_callbacks

If there are a large number of models running callbacks, which is
possible multiple nested levels of autosave assocations, the short-lived
objects in this method can introduce non-negligible GC pressure.

As far as I know, kind will always be a symbol, so the to_s conversion
is unnecessary.

We can also pull the array to a constant which is allocated once, ever,
instead of once per model/request.