Re: How to use Quarks?

2009-01-11 Thread Stefan Kost
Andrew Cowie schrieb: > On Sat, 2009-01-03 at 10:40 -0500, Yu Feng wrote: >> 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 Sun, 2009-01-04 at 14:41 +0200, Stefan Kost w

Re: How to use Quarks?

2009-01-05 Thread Yu Feng
On Mon, 2009-01-05 at 18:43 +1100, Andrew Cowie wrote: > On Sat, 2009-01-03 at 10:40 -0500, Yu Feng wrote: > > 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 Sun, 2009

Re: How to use Quarks?

2009-01-05 Thread Murray Cumming
On Mon, 2009-01-05 at 18:43 +1100, Andrew Cowie wrote: > ie, it sounds like we should switch to g_object_set_qdata() for our one > and only use of GObject "data"; we request and set that value a *lot*, > and I'm always pleased to use faster code paths. The key we use is > already a static string an

Re: How to use Quarks?

2009-01-04 Thread Andrew Cowie
On Sat, 2009-01-03 at 10:40 -0500, Yu Feng wrote: > 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 Sun, 2009-01-04 at 14:41 +0200, Stefan Kost wrote: > If you use a hashtable with string

Re: How to use Quarks?

2009-01-04 Thread Stefan Kost
hi, 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.&q

Re: How to use Quarks?

2009-01-03 Thread Yu Feng
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 > descri

How to use Quarks?

2009-01-03 Thread Patrick Braga
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 ha

Re: quarks

2008-09-02 Thread G Hasse
On Mon, Sep 01, 2008 at 02:20:35AM -0300, Martin (OpenGeoMap) wrote: > > hi!, > > > Someone knows like quarks works in glib????. I suppose quarks is a pun on "atoms" that is so often used as a lingo for som small item. Like atoms in X. > > I can not find the s

Re: quarks

2008-09-01 Thread Martin (OpenGeoMap)
G Hasse wrote: On Mon, Sep 01, 2008 at 09:16:14AM +0200, Martin (OpenGeoMap) wrote: hi: On Mon, Sep 01, 2008 at 02:20:35AM -0300, Martin (OpenGeoMap) wrote: hi!, Someone knows like quarks works in glib. I suppose quarks is a pun on "atoms" that i

Re: quarks

2008-09-01 Thread Martin (OpenGeoMap)
k you. behdad Martin (OpenGeoMap) wrote: Brian J. Tarricone escribió: On Mon, 01 Sep 2008 02:20:35 -0300 Martin (OpenGeoMap) wrote: Someone knows like quarks works in glib. I can not find the source code, only the header. Itś suppose we don need free the string inside a s

Re: quarks

2008-09-01 Thread Mike
http://library.gnome.org/devel/glib/stable/glib-Quarks.html The link works. Is this some kind of weird joke? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: quarks

2008-09-01 Thread Behdad Esfahbod
n Mon, 01 Sep 2008 02:20:35 -0300 Martin (OpenGeoMap) wrote: >> >> >>> Someone knows like quarks works in glib. >>> >>> I can not find the source code, only the header. Itś suppose we don >>> need free the string inside a static string of a quarks

Re: quarks

2008-09-01 Thread Martin (OpenGeoMap)
Brian J. Tarricone escribió: On Mon, 01 Sep 2008 02:20:35 -0300 Martin (OpenGeoMap) wrote: Someone knows like quarks works in glib. I can not find the source code, only the header. Itś suppose we don need free the string inside a static string of a quarks. But how is that???. Where is

Re: quarks

2008-09-01 Thread Brian J. Tarricone
On Mon, 01 Sep 2008 02:20:35 -0300 Martin (OpenGeoMap) wrote: > Someone knows like quarks works in glib. > > I can not find the source code, only the header. Itś suppose we don > need free the string inside a static string of a quarks. But how is > that???. Where is the stri

Re: quarks

2008-09-01 Thread Martin (OpenGeoMap)
hi: On Mon, Sep 01, 2008 at 02:20:35AM -0300, Martin (OpenGeoMap) wrote: hi!, Someone knows like quarks works in glib. I suppose quarks is a pun on "atoms" that is so often used as a lingo for som small item. Like atoms in X. I can not find the source code, only

re: quarks

2008-08-31 Thread Martin (OpenGeoMap)
hi!, Someone knows like quarks works in glib. I can not find the source code, only the header. Itś suppose we don need free the string inside a static string of a quarks. But how is that???. Where is the string saved?. any help? . Regards