Hi List,

Micah Cowan wrote:
> Micah Cowan wrote:
> I'm expecting that, when a file of such size or greater is encountered,
> it would simply be left alone and not parsed, rather than read up to the
> limit, and parse up to that point, but if anyone would like to argue for
> the latter behavior, I'm listening. The main reason I think it's not
> worthwhile is that such files seem less likely to actually be HTML files.
> 

I just converted some project and a log-html was created with 6MB in
size and I agree to you, that this is a rare case and opening this file
with a browser is no fun, but still I don't like hardcoded sizes.
Maybe there will be an all-on-one-page-manual for some software which
exceeds this value or someone has a single-page picture-database-export.

To me it seems to be more clean to provide either some
"--parse-limit=xxBytes" option and to implement the parse in a way it
can't exceed memory.

I also guess that loading the whole 15M of a max-sized-html at once
looks ugly in memory an can lead to problems when you have multiple
wget-processes at once.

Maybe wget should be optimized for HTML-files with a max-size of 4M and
afterwards parse chunks.

Greetings

Matthias Vill

Reply via email to