cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@hns.com>
Subject [PATCH] Offline content generation
Date Mon, 18 Jun 2001 13:23:26 GMT
Hi everybody,

After short investigation of Cocoon's Main.java, I understood that it was not
intended for field use (looks like experimental code). The two main problems
are:
 1. Recursive design (leads to OutOfMemory beacuse every recursive call requires
stack of local variables, which includes Map),
 2. Absence of recursive link resolution (leads to infinite recursion).

Attached is the attempt to fix these problems, and some other fixes.
After applying this patch, offline generator was able to run during hours, and in under 40Mb,
and the only thing which is stopped it was Win2000 limitation on directory size ;)

One thing however which I'm not sure about is how I created environment:
I added "user-agent" and "accept" headers with hardcoded values because they are
required by TraxTransformer (otherwise - numerous NullPointerExceptions). I think
values should be provided via command line arguments, or should be customizable by
some other way.
[ btw - I can implement this - if Giacomo agrees ;) ]

Thanks,
Vadim
Mime
View raw message