engineyard/engineyard-serverside — pull request #118 by martinemde (2014-10-04 21:38:52+00:00)
Title: Reduce ruby object allocation by 3x

Also starts displaying timestamps on most lines because it saves a few
objects (and uses objects that are already created and are useful)

Running the first spec in rails31_deploy_spec.rb and watching memory
allocation from CLI.start.

On master:

Objects (12344 + 4320 + 511 + 10) = 17,185

```
Total allocated 17185
Total retained 269

allocated memory by gem
-----------------------------------
2.1.2/lib x 718600
engineyard-serverside/lib x 701369
other x 23225
rubygems x 658

allocated objects by gem
-----------------------------------
2.1.2/lib x 12344
engineyard-serverside/lib x 4320
other x 511
rubygems x 10
```

With these changes:
Objects (4160 + 1007 + 507 + 10) = 5684

```
Total allocated 5684
Total retained 274

allocated memory by gem
-----------------------------------
engineyard-serverside/lib x 714169
2.1.2/lib x 103434
other x 23063
rubygems x 658

allocated objects by gem
-----------------------------------
engineyard-serverside/lib x 4160
2.1.2/lib x 1007
other x 507
rubygems x 10
```