]> git.donarmstrong.com Git - samtools.git/blobdiff - bam_sort.c
change the default block size in sorting
[samtools.git] / 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) {