Java Gotchas?
Unfortunately, I’ve found that naive Java coding often yields really slow code. Here’s some pointers: Use StringBuffer’s instead of String’s for strings that you will be modifying a lot. This sometimes yields suprisingly huge speedups. This is a pain, because the syntax is different, so you can’t easily switch between the two: String retval = “
“; versus: StringBuffer retval = new StringBuffer(“