> How do we persist <key, value> pairs from Judy array into a file?

There's never been a supported solution, although it's something we
certainly studied back in 1999-2001.  Basically what you really want is
a "batch load/unload" capability.  And, if I recall right, in the source
software package there IS some experimental, unsupported code to do just
this -- I know because I wrote it -- and it's "not known not to work."
I'm just not sure it's on SourceForge.  If not, I might be able to dig
it up.

Doug asserted that libJudy set/insert (and readout) was so fast there
was little point to batch operations, and he was mostly correct, but if
I recall right years later, there was SOME speedup from having code
knowing how to build completed internal tree nodes all at once, not
incrementally.

Beware, any batch in/out of libJudy arrays is only useful if the data is
fully in the array; that is, Judy1, or JudyL with the values being the
real data, not just a pointer to other, malloc'd memory.  In that case
you just gotta write your own load/unload that traverses the array to
unload, and traverses the file data to reload.

Cheers,
Alan Silverstein

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Judy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/judy-devel

Reply via email to