Tag Archives: performance

3 reasons that XML should be Streamed and never "Stringed"

XML is a text format, and so it is tempting to handle it with the normal String handling capabilities of Java, but there are several reasons that you must never do this.  XML should either be on the disk as … Continue reading

Posted in Coding, Design | Tagged , , , , | Leave a comment

#31 Factor Expensive Expressions out of Loops

If you are are calling a method on an object, it is not always clear whether it is an expensive operation (takes a long time, lots of CPU power) or an inexpensive operation.  If you have a loop, and you … Continue reading

Posted in Coding | Tagged , , | Leave a comment

#24 Sprinkling "trim" through the code

One bad practice I have seen on many occasions is the use of trim() statements throughout the code.  This is a poor coding practice, and it is an indicator of disorganized code.

Posted in Coding | Tagged , , , | Leave a comment