I don't know what is the eternity problem with judy-interface. I'm using
Judy-arrays since years without problem (100.000.000 urls). I think it is not a 
good idea to use
the macro interface as recommended in the docs (it's not faster). I use the 
Judy-functions directly
without problems. Pass "&judy-array" to insert and delete functions and  
judy-array to Get-functions.
Ex.
void *judy = NULL;
Word_t *pval;
char s[257];
pval = JudySLIns(&judy, s,  NULL); assert(pval);
*pval = *pval + 1;
....
pval = JudySLGet(judy, s, NULL);
if(pval) { printf("%d", *pval );  }
....
pval =  JudySLDel(&judy, s, NULL);
JudySLFreeArray(&judy, NULL);

The interface is very easy to use and no changes are necessary. You simply 
declare 
void *judy-array = NULL and use the functions directly.basta!

The only drawbacks i found in judy:
- you cannot store  more than  sizeof(*pval)  as value in the array.
You must use the pval indirectly (storing the pointer).
- The JudyNext and JudyPrev can be improved in speed, by using a current 
cursor-structure as parameter.



----- Ursprüngliche Mail ----
Von: yjudy <[EMAIL PROTECTED]>
An: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]; [email protected]
Gesendet: Mittwoch, den 16. Januar 2008, 12:52:13 Uhr
Betreff: New Judy version

Hi guys!

I followed the discussion about the new Judy version & features.
And as you, I'm waiting for it ;-)

The only problem it to have these new killer features with the same 
(poor) interfaces
to access them.

I need to help on that. I'm also interested in the new version core 
design and coding.

cheers
Younès.




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Judy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/judy-devel





        __________________________________  Ihr erstes Baby? Holen Sie sich 
Tipps von anderen Eltern.  www.yahoo.de/clever

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Judy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/judy-devel

Reply via email to