How to make my RESTApps work faster

Hello All,
I am working with rails in Windows xp platform since last 2 month or
so.I have made some basic and simple rails CRUD app.
But whenever I tried to put some authentication on top of the apps,the
app went a lot slower.Specially when accessed from remote client
machines.

- RUBYGEMS VERSION: 1.8.10
  - RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]
  - INSTALLATION DIRECTORY: C:/Ruby187/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: C:/Ruby187/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/Ruby187/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
   -RAILS 3.0.10

I am using AptanaStudio3 as IDE and I have used gem 'devise 1.1.rc0'
for authentication.
Can anyone tell me how can I make my RESTful apps work a li'l faster
with this configuration or any other that might help?

Regards,
Pallav

Are you running in development or production mode? Development is
slow as it reloads all the classes at each request.

Colin

Hello Colin,
I've tried production mode also..But that doesn't come with a lot of
improvement.
And I am using webbrick server.

Hello Colin,
I've tried production mode also..But that doesn't come with a lot of
improvement.
And I am using webbrick server.

There is the question of what you mean by slow of course. Any Ajax
call must do a round trip to the server.

Start by looking in the log though to see if any clues there.

I have not done it myself but there is a Rails Guide on Performance
Testing which purports to provide methods of profiling your app to see
where the bottlenecks are. Others who have experience of this may be
able to offer suggestions. Also googling for ruby rails profile
provides a number of useful looking hits (include ruby in the search
or you find all about the profile of rail lines).

Colin

My team also faced the slowness of app when upgraded to Rails 3.1 from
Rails 2.3.8, using Ruby 1.8.7.

We upgraded to Ruby version to 1.9 to overcome the slowness.
The app runs better in Ruby 1.9.2 with Rails 3.

- Neethu

Thanks Colin,I am trying to resolve this.
Please share if you find anything useful there.

Thanks Neethu,we will surely try that also.

Thanks Colin,I am trying to resolve this.
Please share if you find anything useful there.

I was not suggesting that *I* do the research, just pointing out that
where you might start yourself.

Colin

I didn't assume that you would do the research for me!
Thanks for guiding the direction.
I only asked for sharing any clue in case you find something ...
Thanks again

-Pallav

I agree with Neethu. Upgrade your Ruby version before you try anything
else.

Thanks,
B.

why are you running WEBrick as your production webserver? it's not designed for that.

get an apache or Nginx install post haste!

jordan

I agree would get Nginx running passenger. You also I believe did not
mention the amount of memory you
have on your server etc.