On Jul 18, 2007, at 0:42, BUSTARRET, Jean-francois wrote:
We could store tags within the key... But the get would have to ignore
the tags.
set key,tag,tag,tag value...
get key => value
My first idea was to trick assoc_find by storing nkey as the length of
the key, without tags (instead of strlen(key)), but having strlen
(key) >
nkey might be dangerous, we could add another "keysize" field, and
have
one for memory management, one for key comparison.
No, that doesn't seem like a good idea at all. I meant store and
access it the same way (if you can build the key and tags when you're
setting it, you can do it again when you look it up).
The goal of suggesting that was to determine whether it'd be
sufficient for people who are looking to do things with tags.
--
Dustin Sallings