On Sun, Mar 28, 2010 at 2:52 AM, Andrew Badr <[email protected]> wrote: > Isn't the overhead of a function call negligible compared to executing > a database query or opening/closing a connection?
It is fairly small, especially if there are not signals attached. When signals are attached, it's less trivial. My concern here is that I don't want to make anything slower than it has to be. If there's no point having a pre and post add signal, then I don't want to make every m2m operations slower just because I can. I suppose the underlying question is twofold: * What is the 'right' signal sending behaviour, independent of the cost of signals? * Does the 'right' behaviour change if you account for the fact that signals aren't free? Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django developers" 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/django-developers?hl=en.
