This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Scheme style auto-resizing hashtable (fwd)


Rob Browning <rlb@cs.utexas.edu> writes:

 > Note that their justification for each() makes sense (at least given
 > that perl can tie() hashes to DBM files):
 > 
 >                Note that functions such as keys() and values()
 >                may return huge array values when used on large
 >                DBM files.  You may prefer to use the each()
 >                function to iterate over large DBM files.
 >                Example:
 > 
 >                    # print out history file offsets
 >                    dbmopen(%HIST,'/usr/lib/news/history',0666);
 >                    while (($key,$val) = each %HIST) {
 >                        print $key, ' = ', unpack('L',$val), "\n";
 >                    }
 >                    dbmclose(%HIST);

Handled by hashtable-for-each.


-- 
Harvey J. Stein
BFM Financial Research
hjstein@bfr.co.il