From 61d511f601192ecdef7e8abf4288af19949acc93 Mon Sep 17 00:00:00 2001 From: ebanks Date: Sun, 12 Sep 2010 05:19:09 +0000 Subject: [PATCH] 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 --- .../annotator/genomicannotator/TranscriptToGenomicInfo.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/annotator/genomicannotator/TranscriptToGenomicInfo.java b/java/src/org/broadinstitute/sting/gatk/walkers/annotator/genomicannotator/TranscriptToGenomicInfo.java index 402dd76ab..3b852132c 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/annotator/genomicannotator/TranscriptToGenomicInfo.java +++ b/java/src/org/broadinstitute/sting/gatk/walkers/annotator/genomicannotator/TranscriptToGenomicInfo.java @@ -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 { } // remove it from the cache - storedTranscriptInfo.put(featureKey, null); + storedTranscriptInfo.remove(featureKey); transcriptsProcessedCounter++; if ( transcriptsProcessedCounter % 100 == 0 )