[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How to use Quarks?
- From: Yu Feng <rainwoodman gmail com>
- To: Patrick Braga <theunixgeek lists gmail com>
- Cc: GTK Mailing List <gtk-app-devel-list gnome org>
- Subject: Re: How to use Quarks?
- Date: Sat, 03 Jan 2009 10:40:41 -0500
If you are accessing data member(g_object_set_data) frequently you could
use quarks to accelerate the looking up process(g_object_set_qdata).
On Sat, 2009-01-03 at 12:56 -0200, Patrick Braga wrote:
> I've just begun learning GLib, and I came across Quarks. The documentation
> describes them as "association between strings and integer identifiers.
> Given either the stringo or the GQuark identifier it is possible to
> retrieve the other."
>
> This seems really useful and all, but I have no idea when this could be
> applied. I don't necessarily want code examples, just something like "if
> you want to do this then you could use quarks to..."
>
> Thanks!
>
> Patrick Braga
> http://theunixgeek.blogspot.com
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]