[Rails] Rails (internals) architectural question

Max Muermann max.muermann at gmail.com
Wed Aug 9 02:10:32 GMT 2006


>
> Is this true even in Production mode ?? If yes, this will
> degrade performance of rails compared other web frameworks?.
>

Yes, this is true in production mode. One difference is that in dev
mode (well, based on configuration), the *classes* are (or may be, if
they have changed) reloaded for each request, whereas in production
mode they are cached, so you don't incur the overhead of processing
the class definition every time.

And yes, this does incur a very minor performance overhead. I believe
this to be negligible - and for quite a few years now I have been
using similar "Instantiate things every time" mechanisms for Java web
development, with no problems. Normally, you'll have much bigger
performance fish to fry.

Max


More information about the Rails mailing list