in reply to memory use when merging tied hashrefs
Why are the hashes tied with DB_File? Are they a persistent datastore from which your program draws input? Does your program produce them, using disk instead of memory to reduce memory footprint? Will these databases grow further?
You may need to tie %hash3 to another DB_File and copy the contents key-by-key as other monks have suggested, or change your lookup code to check %hash2 and then %hash1 if the key is not found in %hash2 and elminate %hash3 entirely.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: memory use when merging tied hashrefs
by Anonymous Monk on Nov 14, 2019 at 16:18 UTC | |
by jcb (Parson) on Nov 14, 2019 at 23:19 UTC |