Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#7 HTTP DefaultProcessor performance patch

open
nobody
None
5
2007-11-20
2007-11-20
John Sisson
No

The current writeResponse(..) method in the DefaultProcessor class traverses the response document nodes twice and unnecessarily creates a ByteArrayOutputStream and ByteArray when the logger level is not DEBUG.

Attached is a patch than can be applied to the mx4j directory under svn trunk that changes the code to only do processing related to debug tracing only if the logger level is set to DEBUG.

Discussion

  • John Sisson
    John Sisson
    2007-11-20

    Patch for tools/src/main/java/mx4j/tools/adaptor/http/DefaultProcessor.java