JVM Languages
jqa0402.txt
Associated article: Apr02: Java Q&A
Tags: JVM Languages
Published source code accompanying the article by Tim Kientzle in which he presents techniques for making Java servlets run faster. Also see JQA0402.ZIP.
Java Q&A
by Tim Kientzle
Listing One
class Foo {
private static String outString = "My output";
private byte[] outBytes = outString.getBytes();
void writeOutput(ServletOutputStream socket) {
socket.write(outBytes); // Fast!
// socket.print(outString); // Slow!
}
}
Listing Two
(a)
String ...


