liblzma: Use 512 as INDEX_GROUP_SIZE.
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 23 Oct 2010 09:21:32 +0000 (12:21 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 23 Oct 2010 09:21:32 +0000 (12:21 +0300)
This lets compiler use shifting instead of 64-bit division.

src/liblzma/common/index.c

index 3941e28..ddb9d36 100644 (file)
@@ -18,7 +18,7 @@
 ///
 /// This should be big enough to avoid making lots of tiny allocations
 /// but small enough to avoid too much unused memory at once.
-#define INDEX_GROUP_SIZE 500
+#define INDEX_GROUP_SIZE 512
 
 
 /// \brief      How many Records can be allocated at once at maximum