aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common/index.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-10-23 12:21:32 +0300
committerLasse Collin <lasse.collin@tukaani.org>2010-10-23 12:21:32 +0300
commit23e23f1dc029146714c9a98313ab3ea93d71a2fc (patch)
tree0cfe7eb720ded56558a078e2461e419ba4057b8b /src/liblzma/common/index.c
parentliblzma: A few ABI tweaks to reserve space in structures. (diff)
downloadxz-23e23f1dc029146714c9a98313ab3ea93d71a2fc.tar.xz
liblzma: Use 512 as INDEX_GROUP_SIZE.
This lets compiler use shifting instead of 64-bit division.
Diffstat (limited to 'src/liblzma/common/index.c')
-rw-r--r--src/liblzma/common/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/common/index.c b/src/liblzma/common/index.c
index 3941e28b..ddb9d364 100644
--- a/src/liblzma/common/index.c
+++ b/src/liblzma/common/index.c
@@ -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