Topic: Webrick optimizing

Hello,

My team is cooking up a rails app for demo to a client.  At this point we don't have time to mess with lighty since we're concentrating on the app.  However, when running in webrick our app is noticably slow.  Are there any means of speeding up webrick?  I've tried running with the production environment and that made a noticable improvement.  If I could just squeeze a bit more out of it it would be fine for our demo.  Most importantly, is there a way to supress the printouts from webrick?  That would probably be enough performance to make the grade.

Thanks,
Snowdall

Re: Webrick optimizing

Have you considered mongrel? It's as easy to use as webrick and is much faster.

Railscasts - Free Ruby on Rails Screencasts

Re: Webrick optimizing

Is it quick and easy to configure?  Because I tried to get lighttpd up for half a day and couldn't get it.  And I don't have that kinda of time to screw with a http server for a demo that's coming up in two weeks.  If it's easy I'd give it a go.

Snowdall

Re: Webrick optimizing

FOLLOWUP:

Well I did get Mongrel installed and working reasonably quickly.  So I guess I answered my own question.  The problem is, the performance on my particular app is actually worse than it was under webrick using the production version.  Any throught?

Snowdall

P.S. I was just running "mongrel_rails start -d"  If there are any switches that speed it up let me know.

Re: Webrick optimizing

It's probably still running in development environment which is what it defaults to. I think this will make it run in production:

mongrel_rails start -d -e production

If this is still not fast enough, it is likely you'll need to optimize your application - not the web server. Check out the development/production logs. These will tell you which database queries are being run and how long they take. This is often a good place to start when optimizing.

Railscasts - Free Ruby on Rails Screencasts