whats the purpose of quark

2008-01-23 Thread Bin Chen
Hi, In glib there is a primitive named quark, it relates a ID with a string, but whats the advantage for this? Can we use a string instead, just to save some bytes for duplicated strings? Thanks Bin ___ gtk-app-devel-list mailing list

Re: whats the purpose of quark

2008-01-23 Thread Matthias Clasen
On Jan 23, 2008 9:54 PM, Bin Chen [EMAIL PROTECTED] wrote: Hi, In glib there is a primitive named quark, it relates a ID with a string, but whats the advantage for this? Can we use a string instead, just to save some bytes for duplicated strings? It has the same advantages as string

Re: whats the purpose of quark

2008-01-23 Thread Binary Chen
在 2008-01-23三的 22:09 -0500,Matthias Clasen写道: On Jan 23, 2008 9:54 PM, Bin Chen [EMAIL PROTECTED] wrote: Hi, In glib there is a primitive named quark, it relates a ID with a string, but whats the advantage for this? Can we use a string instead, just to save some bytes for duplicated

Re: whats the purpose of quark

2008-01-23 Thread Emmanuele Bassi
On Thu, 2008-01-24 at 11:40 +0800, Binary Chen wrote: In glib there is a primitive named quark, it relates a ID with a string, but whats the advantage for this? Can we use a string instead, just to save some bytes for duplicated strings? It has the same advantages as string