[Geany-devel] GObject: Use ->priv instead GET_PRIV() macros - Re: SF.net SVN: geany:[4791] trunk
Nick Treleaven
nick.treleaven at xxxxx
Tue Mar 30 17:24:38 UTC 2010
Hi,
I randomly saw this:
http://blogs.gnome.org/jjardon/2010/03/30/improve-performance-use-priv-instead-get_priv-macros/
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.
I removed this macro generation from the Class Builder plugin.
On Tue, 30 Mar 2010 17:19:59 +0000 ntrel at users.sourceforge.net wrote:
> Revision: 4791
> http://geany.svn.sourceforge.net/geany/?rev=4791&view=rev
> Author: ntrel
> Date: 2010-03-30 17:19:59 +0000 (Tue, 30 Mar 2010)
>
> Log Message:
> -----------
> Don't generate FOO_GET_PRIVATE() macro because caching the result
> in Foo::priv can be much more efficient.
Regards,
Nick
More information about the Devel
mailing list