aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/cases
diff options
context:
space:
mode:
authorschneems <richard.schneeman+foo@gmail.com>2018-09-07 13:45:01 -0500
committerschneems <richard.schneeman+foo@gmail.com>2018-09-07 17:33:10 -0500
commit1bd578ffe6e89cbe828745c15d730be2ce850109 (patch)
tree7d4c93e3f4c4e4af7d80478ef49ff428d2ee6356 /activejob/test/cases
parentc3e569550ca0a90561fe990f519719ba52402504 (diff)
downloadrails-1bd578ffe6e89cbe828745c15d730be2ce850109.tar.gz
rails-1bd578ffe6e89cbe828745c15d730be2ce850109.tar.bz2
rails-1bd578ffe6e89cbe828745c15d730be2ce850109.zip
Don’t allocate array on no args
When no dependencies are present to be digested there is no reason to build an array just to turn around and turn it back into a string. The dependencies array is not mutated in this method so we can use the same empty array across all invocations. Total allocated: 791402 bytes (7294 objects) Total allocated: 777442 bytes (7132 objects) (791402 - 777442) / 791402.0 # => 1.76 % speed improvement
Diffstat (limited to 'activejob/test/cases')
0 files changed, 0 insertions, 0 deletions