aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2014-04-19 18:37:41 +0100
committerAndrew White <andyw@pixeltrix.co.uk>2014-04-20 10:11:38 +0100
commita61792574d9c8904590895f7a2f56803e02a6c52 (patch)
tree9b3e1d9bf7809137f4ffe46defa8f47fcfa4406b /actionpack/test
parente2ef83f8387679ce540d745659a79dd13164f9b5 (diff)
downloadrails-a61792574d9c8904590895f7a2f56803e02a6c52.tar.gz
rails-a61792574d9c8904590895f7a2f56803e02a6c52.tar.bz2
rails-a61792574d9c8904590895f7a2f56803e02a6c52.zip
Optimize URI escaping
The URI::Parser#escape method is a general use method that has to deal with a variety of input however our use of it is limited in scope so we can increase the performance by implementing our specific needs within ActionDispatch::Journey::Router::Utils directly. If there is no encoding required then there is no change in performance or number of objects allocated, but for each character that needs to be encoded we save five object allocations and gain a performance boost. The performance boost seen varies from 20% when there is one character to over 50% when encoding ten characters.
Diffstat (limited to 'actionpack/test')
0 files changed, 0 insertions, 0 deletions