I feel like I need to keep following up just in case a Java newbie takes this advice seriously.
On Mon, Jul 23, 2012 at 11:14 PM, Drake <[email protected]> wrote: > Also None of your references are weak? Do you just hate garbage collectors? > That won't help much with startup, but again it would reduce your need to > startup as often. That makes absolutely no sense. The app doesn't cache data in instances; there's utterly no point to using weak references. > You do a lot of String + String.. use stringbuffer instead "this" + "that" is compiler syntactic sugar for using a StringBuilder to assemble the string. There is no difference between the two. It's probable that I could do the same trick I did with imports and create with two classes that generate identical bytecodes, but figuring out the exact pattern is more effort than I care to spend at the moment. Also, never use StringBuffer; it's a legacy class from JDK 1.0 which unnecessarily synchronizes method calls. StringBuilder is the replacement. > You do a lot of .Trim when you should use Vector I'm genuinely afraid to ask, but... huh? Vector? (!!!) Jeff -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
