index.c (213700) | index.c (215187) |
---|---|
1/////////////////////////////////////////////////////////////////////////////// 2// 3/// \file index.c 4/// \brief Handling of .xz Indexes and some other Stream information 5// 6// Author: Lasse Collin 7// 8// This file has been put into the public domain. --- 4 unchanged lines hidden (view full) --- 13#include "index.h" 14#include "stream_flags_common.h" 15 16 17/// \brief How many Records to allocate at once 18/// 19/// This should be big enough to avoid making lots of tiny allocations 20/// but small enough to avoid too much unused memory at once. | 1/////////////////////////////////////////////////////////////////////////////// 2// 3/// \file index.c 4/// \brief Handling of .xz Indexes and some other Stream information 5// 6// Author: Lasse Collin 7// 8// This file has been put into the public domain. --- 4 unchanged lines hidden (view full) --- 13#include "index.h" 14#include "stream_flags_common.h" 15 16 17/// \brief How many Records to allocate at once 18/// 19/// This should be big enough to avoid making lots of tiny allocations 20/// but small enough to avoid too much unused memory at once. |
21#define INDEX_GROUP_SIZE 500 | 21#define INDEX_GROUP_SIZE 512 |
22 23 24/// \brief How many Records can be allocated at once at maximum 25#define PREALLOC_MAX ((SIZE_MAX - sizeof(index_group)) / sizeof(index_record)) 26 27 28/// \brief Base structure for index_stream and index_group structures 29typedef struct index_tree_node_s index_tree_node; --- 1212 unchanged lines hidden --- | 22 23 24/// \brief How many Records can be allocated at once at maximum 25#define PREALLOC_MAX ((SIZE_MAX - sizeof(index_group)) / sizeof(index_record)) 26 27 28/// \brief Base structure for index_stream and index_group structures 29typedef struct index_tree_node_s index_tree_node; --- 1212 unchanged lines hidden --- |