Changes between Version 2 and Version 3 of JavaHints


Ignore:
Timestamp:
03/14/08 12:29:54 (11 years ago)
Author:
joshuadf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JavaHints

    v2 v3  
     1[http://www.odi.ch/prog/design/newbies.php Java Anti-Patterns] - some efficiency notes 
     2 
     3== Local Variable Usage == 
     4If you need a StringBuffer or Collection for a temporary local variable, 
     5use the less expensive version: 
     6|| Local           || Thread-safe    || 
     7|| Array``List     || Vector         || 
     8|| Hash``Map       || Hashtable      || 
     9|| String``Builder || String``Buffer || 
     10 
     11== JVM Options == 
     12 
    113Here's a way to make the Sun server JVM take some extra time reserving 
    214memory (used in MindSeer and some Tomcats): 
     
    416`JAVA_OPTS="-server -Xmx384m -Xms384m -XX:GCTimeLimit=95 -XX:GCTimeRatio=49"` 
    517 
    6  
    7  
    818Another problem is webapps using up the perm gen space, see #15; you can  
    919increase with