[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


    Date: Mon, 08 May 89 14:24:46 O
    From: johny%TECHSEL.BITNET@cunyvm.cuny.edu (Johny Srouji)


    Sorry if that's not the right place to ask!
    I have A big HASH TABLE (let's say about 10,000 entries)
    and would like to load/restore it to/from a file.
    Is there any effective way to do that, other than scanning
    the whole entries an write each one to a file? (i.e: if there
    is a way to save it as binary for example?).

    Thanks in advance for any help,


how about:

(setq ahashtable (make-hash-table 10000.))

(setf (gethash 'first ahashtable) 1)
(setf (gethash 'second ahashtable) 2)

(sys:dump-forms-to-file "px:>yang>temp>test.bin" (list `(setq B-HASHTABLE ,ahashtable)))

LOAD FILE px:>yang>temp>test.bin. 

I hope it helps.