]> git.donarmstrong.com Git - samtools.git/commitdiff
change the default block size in sorting
authorHeng Li <lh3@me.com>
Sun, 18 Mar 2012 21:36:26 +0000 (17:36 -0400)
committerHeng Li <lh3@me.com>
Sun, 18 Mar 2012 21:36:26 +0000 (17:36 -0400)
bam_sort.c

index 166be2ae5b5d9992796907b2323af96935640d87..bbb8f2dbaf0a48b211c789746cec0c3e836371c8 100644 (file)
@@ -486,7 +486,7 @@ void bam_sort_core(int is_by_qname, const char *fn, const char *prefix, size_t m
 
 int bam_sort(int argc, char *argv[])
 {
-       size_t max_mem = 1<<29; // 512MB
+       size_t max_mem = 768<<20; // 512MB
        int c, is_by_qname = 0, is_stdout = 0, n_threads = 0;
        while ((c = getopt(argc, argv, "nom:@:")) >= 0) {
                switch (c) {