From: Lasse Collin Date: Sat, 23 Oct 2010 09:21:32 +0000 (+0300) Subject: liblzma: Use 512 as INDEX_GROUP_SIZE. X-Git-Tag: v5.0.0~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23e23f1dc029146714c9a98313ab3ea93d71a2fc;p=xz liblzma: Use 512 as INDEX_GROUP_SIZE. This lets compiler use shifting instead of 64-bit division. --- 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