News for hackers. Stuff that matters.
Re:Suppose I wanted to write a C++ based web application... by ROFISH on Sunday October 05, 2008 @01:22AM (#323893)
I've always wondered what the speed of Rails would be if ActiveRecord and friends was in C (or ASM for the insane).
Re:Suppose I wanted to write a C++ based web application... by jhancock on Sunday October 05, 2008 @02:21AM (#323933)
Wonder no more ;).

If you want to see how much better an ORM in ruby/C can be, look at datamapper http://datamapper.org. This is mainly used with merb. The new datamapper uses data_objects which has been completely rewritten with C underpinnings to be much more efficient than previous datamapper. I haven't seen any recent benchmarks against ActiveRecord. But I do believe the datamapper team met their goals of being faster.

Re:Suppose I wanted to write a C++ based web application... by dkubb on Sunday October 05, 2008 @02:56AM (#323955)
DataMapper is about 60% faster overall than ActiveRecord, and as much as 20x faster in a few key benchmarks at the moment: http://is.gd/3xwR

In fact we, the core DM contributors, have spent very little time optimizing the library. Up until now we've been mostly focused on creating a clean API, and keeping the internals simplified. I would expect the gap to widen much further once the API stabilizes, and the spec coverage gets nearer 100% (it was in the low 90's last I checked).

Re:Suppose I wanted to write a C++ based web application... by ntoshev on Sunday October 05, 2008 @05:15AM (#324012)
Do you attribute the performance to the implementation language or the different design pattern / approach to ORM?