Rails performance improvement

That kind of delay is almost certainly not caused by the rails
framework, I would suspect some environment problem or a horrible
coding mistake.

Try running the app on a differnet machine and see if the delay is
still there. That will eliminate or confirm the environmental setup