> If anyone is working on the callback chain (Yehuda is, I think), is
> there a chance that the callback chain avoids calls to "respond_to?"
> on class objects in order to skip the DynamicFinder stuff ?
>
> These calls quickly add up. Typical Node.update_attributes (2 models
> involved) : 53 calls !

Do you have a benchmark in mind which shows where this is a problem?
Counting method calls is fun if you buy into the reddit meme that
calling methods is inherently slow.  But even 53 methods will be
dwarfed by rendering a single ERB template.

>
> Gaspard
>
> ---------
>
> store_full_sti_class
> store_full_sti_class
> before_validation_callback_chain
> before_validation_callback_chain
> before_validation_callback_chain
> store_full_sti_class
> store_full_sti_class
> store_full_sti_class
> store_full_sti_class
> store_full_sti_class
> before_validation_on_update_callback_chain
> before_validation_on_update_callback_chain
> before_validation_on_update_callback_chain
> validate_callback_chain
> validate_callback_chain
> validate_callback_chain
> validate_on_update_callback_chain
> validate_on_update_callback_chain
> validate_on_update_callback_chain
> after_validation_callback_chain
> after_validation_callback_chain
> after_validation_callback_chain
> after_validation_on_update_callback_chain
> after_validation_on_update_callback_chain
> after_validation_on_update_callback_chain
> before_save_callback_chain
> before_save_callback_chain
> before_save_callback_chain
> before_update_callback_chain
> before_update_callback_chain
> before_update_callback_chain
> partial_updates
> partial_updates
> partial_updates
> partial_updates
> partial_updates
> partial_updates
> after_update_callback_chain
> after_update_callback_chain
> after_update_callback_chain
> after_save_callback_chain
> after_save_callback_chain
> after_save_callback_chain
> store_full_sti_class
> store_full_sti_class
> store_full_sti_class
> store_full_sti_class
> store_full_sti_class
> store_full_sti_class
> store_full_sti_class
> store_full_sti_class
> store_full_sti_class
> store_full_sti_class
>
> >
>



-- 
Cheers

Koz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to