Small memory performance improvement: remove the mapping from the hash instead of setting the value to null (i.e. remove the key too)
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4256 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
a0231f073f
commit
61d511f601
|
|
@ -45,7 +45,6 @@ import org.broadinstitute.sting.gatk.walkers.RodWalker;
|
|||
import org.broadinstitute.sting.gatk.walkers.Window;
|
||||
import org.broadinstitute.sting.utils.BaseUtils;
|
||||
import org.broadinstitute.sting.utils.GATKException;
|
||||
import org.broadinstitute.sting.utils.StingException;
|
||||
import org.broadinstitute.sting.utils.exceptions.UserError;
|
||||
|
||||
|
||||
|
|
@ -283,7 +282,7 @@ public class TranscriptToGenomicInfo extends RodWalker<Integer, Integer> {
|
|||
}
|
||||
|
||||
// remove it from the cache
|
||||
storedTranscriptInfo.put(featureKey, null);
|
||||
storedTranscriptInfo.remove(featureKey);
|
||||
|
||||
transcriptsProcessedCounter++;
|
||||
if ( transcriptsProcessedCounter % 100 == 0 )
|
||||
|
|
|
|||
Loading…
Reference in New Issue