Re: Somewhat of a GQuark
- From: Harring Figueiredo <harringf yahoo com>
- To: Tristan Van Berkom <vantr touchtunes com>, gtk-app-devel-list gnome org
- Subject: Re: Somewhat of a GQuark
- Date: Thu, 6 May 2004 10:35:32 -0700 (PDT)
Tristan,
If you take the flat file approach, you could save the hasmap on the file
using some type of key=value pair
And then loading it back and reinserting into the hashmap...
Maybe this is the stuff you are trying to avoid doing ?
Harring
--- Tristan Van Berkom <vantr touchtunes com> wrote:
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.
Hmmm,
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 ?
Cheers,
-Tristan
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]