in reply to Comparing large files
IIRC does one hash entry result approx. 100 bytes overhead, so putting all errors in a hash should be feasible even on my pity NetBook.
Parse the pronunciation-file line by line and build a lookup hash.
Then parse the other file per line and look for missing entries.
If you really have RAM problems try splitting the hash into several disjunct ones (like for every 10% of the file) and parse the second file once for each hash.
Shouldn't take longer then seconds (at most minutes)
HTH! :)
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|