I don't know how to benchmark this better, but I wonder if the
slowness is because we preload all the models. Isn't one of the
beauties of the rails console that it'll autoload files based on what
you try to instantiate?
from /Users/inspire/.rvm/gems/ree-1.8.7-2010.02/gems/dm-rails-1.0.0/
lib/dm-rails/setup.rb:47:in `preload_models'
from /Users/inspire/.rvm/gems/ree-1.8.7-2010.02/gems/dm-rails-1.0.0/
lib/dm-rails/railtie.rb:83:in `_callback_before_7'
By slow, I mean it takes ~6 seconds for me on a 8-core mac pro with 7
models (though some tricky is-remixable stuff too).
Or maybe I'm all off and its something else. If you have any ideas on
how to benchmark the startup time, let me know please :)
--
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.