On Tue, 30 Mar 2010 18:24:38 +0100, Nick wrote:
Hi,
I randomly saw this: http://blogs.gnome.org/jjardon/2010/03/30/improve-performance-use-priv-inste...
Sweet.
For our uses I'm not sure if it affects performance much, but it would be good to remove all FOO_GET_PRIVATE() macros from GObject code.
Yes.
I removed this macro generation from the Class Builder plugin.
Maybe we could do what Alberto said: keep the FOO_GET_PRIVATE() macros but change them so they use the cached private field. This has the advantage that for existing code you don't need to change so much code. Of course, the changes in Geany's GObject classes aren't that many and for the Class Builder plugin it also doesn't really affect because it is used for *new* code :). But still, I think many GObject developers are kinda used to use FOO_GET_PRIVATE() (including me).
Regards, Enrico