aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/MIT-LICENSE
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2015-07-25 10:52:11 -0500
committerschneems <richard.schneeman@gmail.com>2015-07-30 12:31:04 -0500
commit3fb9e802436a5e3b5733ea9d5cb3964a32a3d8f9 (patch)
treedd1b2e3341539cad68898d51f09730d424370f0b /actionpack/MIT-LICENSE
parent045cdd3a3d50b06019361cf7bec57f2521facff6 (diff)
downloadrails-3fb9e802436a5e3b5733ea9d5cb3964a32a3d8f9.tar.gz
rails-3fb9e802436a5e3b5733ea9d5cb3964a32a3d8f9.tar.bz2
rails-3fb9e802436a5e3b5733ea9d5cb3964a32a3d8f9.zip
Only allocate new string when needed
Instead of calling `sub` on every link_to call for controller, we can detect when the string __needs__ to be allocated and only then create a new string (without the leading slash), otherwise, use the string that is given to us. Saves 888 string objects per request, 35,524 bytes.
Diffstat (limited to 'actionpack/MIT-LICENSE')
0 files changed, 0 insertions, 0 deletions