]> git.donarmstrong.com Git - bamtools.git/commitdiff
Rolled back the BGZF buffer size to the original 64K. 256K was causing
authorderek <derekwbarnett@gmail.com>
Tue, 5 Apr 2011 17:37:01 +0000 (13:37 -0400)
committerderek <derekwbarnett@gmail.com>
Tue, 5 Apr 2011 17:37:01 +0000 (13:37 -0400)
crashes on some systems.

src/api/BamConstants.h

index 6a1695a65be26005a89d49a814c4237e11e13f66..58b0e49b001b8ecc3ddd884b19da6ddf5d5a99dd 100644 (file)
@@ -115,8 +115,8 @@ const int Z_DEFAULT_MEM_LEVEL = 8;
 // BZGF constants
 const int BGZF_BLOCK_HEADER_LENGTH = 18;
 const int BGZF_BLOCK_FOOTER_LENGTH = 8;
-const int BGZF_MAX_BLOCK_SIZE      = 262144;
-const int BGZF_DEFAULT_BLOCK_SIZE  = 262144;
+const int BGZF_MAX_BLOCK_SIZE      = 65536;
+const int BGZF_DEFAULT_BLOCK_SIZE  = 65536;
 
 } // namespace Constants
 } // namespace BamTools