[TAG] Transcoding UTF to ISO8859-1
Riza Aziz
telefonixar at yahoo.com
Mon Jun 27 09:44:31 MSD 2005
--- Jimmy O'Regan <jimregan at o2.ie> wrote:
> How long is a piece of string? :) (No, really - if you
> know your file will fit into memory, your way is better,
otherwise my way is better (I think :)).
I think your way (of looping through the file) is actually
better for a large range of file sizes.
I usually "cat" a bunch of HTML files together before
converting them with the script. Using the slurp method, a
cobbled-together file of 1 mb or more pretty much kills the
computer :) It just sits there, not processing but taking
up a lot of memory. After 10 minutes I have to kill the
process.
OTOH if you loop over the file, that would allow it to
better allocate memory, I guess?
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
More information about the TAG
mailing list