Hi Roger,

> One thought I had recently...
> If you ever get some of the old "free time" for datamapper, I have
> noticed that the principles used by slim attributes[1], though
> somewhat contrasting to that of datamapper, do allow one to load Mysql
> rows very quickly [at least compared to ActiveRecord].  Might be worth
> glancing at sometime.
> [1]http://pennysmalls.com/2008/10/14/slim-attributes-v050-released/

We've actually discussed this before in IRC.  In fact I think this
approach is totally complementary to how DataMapper works.  We attempt
to be lazy in almost every other way, but this is one area we are
lacking.

Technically we should still be able to exceed the Slim Attributes
performance with DO because it doesn't create intermediary String
objects to hold the return values -- when accessed they could be
typecasted directly into an instance of whatever ruby primitive
corresponds to the property, just like now.

I would love to see someone explore this with DataObjects and
DataMapper.  I don't know what, if any, changes would be required but
if someone has the C knowledge and the motivation they should go for
it.  According to the Slim Attributes home page they are seeing as
much as a 50% speed increase.

Dan
(dkubb)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to