GNOME Bugzilla – Bug 633002
meta-actor-window: Use G_UNLIKELY for TFP check
Last modified: 2010-11-18 17:52:47 UTC
This is just a microptimization, as we pretty much always use TFP (and do the check every time we set a pixmap), we can let gcc generate better code here. Alternatively we could just remove it, but it might be still worth having to catch corner cases. Note: I did not notice nor measure any performance impact, just noticed that while reading through the code.
Created attachment 173092 [details] [review] meta-actor-window: Use G_UNLIKELY for TFP check This is just a microptimization, as we pretty much always use TFP (and do the check every time we set a pixmap), we can let gcc generate better code here.
Review of attachment 173092 [details] [review]: I'm not a scatter-G_UNLIKELY-through-code fan, but sure.