Hi, While playing with OptimizeIt, I found quite interesting piece of code in Xalan code, class org.apache.xml.utils.DefaultErrorHandler:
public DefaultErrorHandler()
{
m_pw = new PrintWriter(System.err, true);
}
Which, according to OptimizeIt, takes 42.72% of time on the simple
pipeline with XSP generator and XML serializer (modified /cocoon/sub/xsp
sample, without transformation). This was hard to believe, so I got
Xalan CVS and quickly hacked this class (diff attached). The results are
astonishing: also I did not get much improvement in throughput (too much
time was taken by the sockets; may be more testing threads will help),
but processing time improved on 386%, from 498 ms to 129 ms.
I though somebody might be interested in this result, so here is the
letter :)
PS If somebody could ask Xalan guys to get rid of new PrintWriter() -
this would be great :)
PPS XSPs *are* fast. XSL is slow :-|
Vadim
DefaultErrorHandler.diff
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
