GNOME Bugzilla – Bug 654727
alpha: Don't use the GClosure to compute the alpha when possible
Last modified: 2011-07-18 14:29:06 UTC
Setting up the call and calling the GClosure was showing up in profiles and seemed an easy one to remove. Instead of calling the closure, let's remember the alpha func and the user_data when possible (ie set_mode() and set_func()) and use it in get_alpha().
Created attachment 192080 [details] [review] alpha: Don't use the GClosure to compute the alpha when possible
Created attachment 192186 [details] [review] a slightly different version of the patch in attachment 192080 [details] [review]: instead of keeping the Closure around, let's split the two paths - we either use a decomposed func/data/notify tuple or we use the GClosure.
pushed to master