gatk3的最后一个经典版本3.8
 
 
 
 
Go to file
David Roazen d3437e62da Added a simple utility method Utils.optimumHashSize() to calculate the optimum
initial size for a Java hash table (HashMap, HashSet, etc.) given an expected
maximum number of elements. The optimum size is the smallest size that's
guaranteed not to result in any rehash / table-resize operations.

Example Usage:
Map<String, Object> hash = new HashMap<String, Object>(Utils.optimumHashSize(expectedMaxElements));

I think we're paying way too heavy a price in unnecessary rehash operations across
the GATK. If you don't specify an initial size, you get a table of size 16 that gets
completely rehashed and doubles in size every time it becomes 75% full. This means you
do at least twice as much work as you need to in order to populate your table:

(n + n/2 + n/4 + ... 16 ~= (1 + 1/2 + 1/4...) * n ~= 2 * n
2011-08-02 21:59:06 -04:00
public Added a simple utility method Utils.optimumHashSize() to calculate the optimum 2011-08-02 21:59:06 -04:00
settings Updates to the help layout. 2011-07-26 19:29:25 -04:00
LICENSE One last test... 2011-06-28 19:18:17 -04:00
build.xml Merged bug fix from Stable into Unstable 2011-07-27 12:37:34 -04:00
ivy.xml Runs and emits an HTML document 2011-07-20 17:16:33 -04:00