Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Eating RAM problemby Abigail-II (Bishop) |
on Aug 01, 2002 at 17:54 UTC ( [id://186867]=note: print w/replies, xml ) | Need Help?? |
Your problem isn't so much the file size, your problem is
that you want to make an array element for every single
character. This is Perl, not C, so this is going to be
costly - you'll get the overhead of a "Perl value" for each
character.
Do you really need that? Can't you use substr? Do you have to have all the characters of the file at the same time? Isn't the encryption/decryption algorithm made such that it encrypts/decrypts blocks of some decent size? Abigail
In Section
Seekers of Perl Wisdom
|
|