Reduce memory consumption of BibBlogsTest further
This commit is contained in:
parent
7a43c41787
commit
ebff39f5d9
@ -22,8 +22,8 @@ using blockstore::compressing::RunLengthEncoding;
|
|||||||
class BigBlobsTest : public ::testing::Test {
|
class BigBlobsTest : public ::testing::Test {
|
||||||
public:
|
public:
|
||||||
static constexpr size_t BLOCKSIZE = 32 * 1024;
|
static constexpr size_t BLOCKSIZE = 32 * 1024;
|
||||||
static constexpr uint64_t SMALL_BLOB_SIZE = UINT64_C(1024)*1024*1024*3.5; // 3.5 GB (<4GB)
|
static constexpr uint64_t SMALL_BLOB_SIZE = UINT64_C(1024)*1024*1024*3.9; // 3.9 GB (<4GB)
|
||||||
static constexpr uint64_t LARGE_BLOB_SIZE = UINT64_C(1024)*1024*1024*4.5; // 4.5 GB (>4GB)
|
static constexpr uint64_t LARGE_BLOB_SIZE = UINT64_C(1024)*1024*1024*4.1; // 4.1 GB (>4GB)
|
||||||
|
|
||||||
static constexpr uint64_t max_uint_32 = std::numeric_limits<uint32_t>::max();
|
static constexpr uint64_t max_uint_32 = std::numeric_limits<uint32_t>::max();
|
||||||
static_assert(SMALL_BLOB_SIZE < max_uint_32, "LARGE_BLOB_SIZE should need 64bit or the test case is mute");
|
static_assert(SMALL_BLOB_SIZE < max_uint_32, "LARGE_BLOB_SIZE should need 64bit or the test case is mute");
|
||||||
|
Loading…
Reference in New Issue
Block a user