diff options
author | Yehuda Katz <wycats@gmail.com> | 2008-12-27 00:06:57 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2008-12-27 00:06:57 -0800 |
commit | 4f043a48381c142e308824e3b7e15435a61bbb53 (patch) | |
tree | f994f692d15a0d743ad5c2d942e2944fe3ff9140 /actionpack/lib/action_controller/middleware_stack.rb | |
parent | f4f8923cf0ef5bd31f9e98cecf4603d0c4bde296 (diff) | |
download | rails-4f043a48381c142e308824e3b7e15435a61bbb53.tar.gz rails-4f043a48381c142e308824e3b7e15435a61bbb53.tar.bz2 rails-4f043a48381c142e308824e3b7e15435a61bbb53.zip |
More optimizations on respond_to after a profile and benching:
App with simple respond_to:
def index
respond_to do |format|
format.html
format.xml
format.json
end
end
On JRuby (after complete hotspot warmup) -- 8% improvement:
550 requests per second after this commit
510 requests per second with old method_missing technique
On MRI (8% improvement):
430 requests per second after this commit
400 requests per second with old method_missing technique
Diffstat (limited to 'actionpack/lib/action_controller/middleware_stack.rb')
0 files changed, 0 insertions, 0 deletions