On 7/2/07, Zbigniew <[EMAIL PROTECTED]> wrote:
Two options come to mind.
1) Use a database.
Good point! Will go the sqlite3 route.
martin
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-user
Two options come to mind.
1) Use a database.
2) Write the data out as a Scheme expression; e.g. (write
(hash-table->alist dict)), then read it back in with
(alist->hash-table (read)).
#1 will almost certainly be faster for large datasets, and will use
much less memory.
On 7/1/07, Martin DeMello
I have a list of words (182260 words, 1.6MB) that I need to read into
a series of hashes, e.g.
(word => true) for quick lookups,(word => (anagrams)), etc. Rather
than do this every time the program is run, I want to serialise the
hashes and dump them to a file, and subsequently loading in the file