Mr eel

Soz, But Rails is Slow

The level of performance Rails delivers out of box is almost laughable compared to even archaic frameworks like ASP Classic. 120 requests-per-second for a cacheless ASP Classic application is pretty straight-forward, but doing the same with Rails would be quite a feat without a comparatively insane amount of resources available.

This quote courtesy of Sam Smoot. He’s absolutely right. I have discovered this first hand. Ruby on Rails is a sloooooooow motherbitch. I love it like an ugly child. It’s special, but it still annoys me.

I’ve heard the arguments about scaling. My favourite is that hardware is cheaper than developer time, so just throw some new servers at the application. That only works if you’ve actually got the money. Besides it’s an inelegant, brute-force approach. Yes, you will need heavy hardware to deal with high traffic regardless of the framework, but Rails needs that hardware a lot earlier than most.

There are so many points in Rails that should be changed to improve performance. For example an update through ActiveRecord actually updates every field in the DB, regardless if it has been changed. That’s so obviously dumb. But as far as I know there are no plans to change it.

Luckily there are other alternatives, but that’s for another post :)

Posted on August 15th, 2007 | There are 0 comments

Word From the Wise

Don’t turn on ‘Show Invisibles’ in your code editor. You’ll suddenly find yourself obsessing over how neat your tabbing and whitespace is.

Posted on August 10th, 2007 | There are 1 comment

BASS!!11111eleventy

I only wish I could have been there. This track is solid solid solid. It’s made for a hefty system. I’m a big fan of The Bug and I’m really looking forward to his work on the new Warrior Queen LP.

Posted on August 6th, 2007 | There are 0 comments

All contents © 2005—2007 Luke Matthew Sutton