Somewhat of a GQuark
- From: Tristan Van Berkom <vantr touchtunes com>
- To: gtk-app-devel-list gnome org
- Subject: Somewhat of a GQuark
- Date: Thu, 06 May 2004 12:40:52 -0400
This might be a little off topic but what the hay,
I'm looking for some kind of api that will allow me to make
"something like a GQuark" but that will stay consistant across
applications. I'm sure this has been done before but I dont want
to use a huge bloated database mainframe kinda thingy.
quarks in glib are implemented through hash tables and a
static array, would it be feasible to acomplish this, say using
file accesses or via shared memory segments ? (I'm sure that
an array of strings in a shared memory segment will work, but I'm
not sure about the hash, and the lookup using strcmp() would kind
of defeat the purpose).
I'm really a dunce when it comes to databases, but how hard can it be
to implement a hash-map in a flat file ?
] [Thread Prev