[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: whats the purpose of quark
- From: Binary Chen <binary chen gmail com>
- To: Matthias Clasen <matthias clasen gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: whats the purpose of quark
- Date: Thu, 24 Jan 2008 11:40:42 +0800
在 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]