Perl Monk, Perl Meditation | |
PerlMonks |
Re: Reduce RAM requiredby hdb (Monsignor) |
on Jan 08, 2019 at 10:35 UTC ( [id://1228193]=note: print w/replies, xml ) | Need Help?? |
It looks to me as if - within each $window - you only need to count the occurrence of each of the 4 letters and then write a random sequence of those letters with the correct frequency of each. This only needs a bit of book keeping when reading and writing the files but should consume far less memory in the order of 4 times the number of windows. But then I may not really have understood your shuffling requirements...
In Section
Seekers of Perl Wisdom
|
|