Re: whats the purpose of quark



å 2008-01-23äç 22:09 -0500ïMatthias Clasenåéï
On Jan 23, 2008 9:54 PM, Bin Chen <binary chen gmail com> 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 interning in any other
language...

Can you give me an example for this?

Bin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]