Optimize ascii_pack in debug mode

This commit is contained in:
Roman Gershman 2022-03-12 12:06:32 +02:00
parent d5281721bd
commit 81ffb189ef
3 changed files with 15 additions and 13 deletions

View file

@ -327,8 +327,8 @@ TEST_F(DflyEngineTest, Memcache) {
TEST_F(DflyEngineTest, LimitMemory) {
mi_option_enable(mi_option_limit_os_alloc);
string blob(1 << 15, 'a');
for (size_t i = 0; i < 1000; ++i) {
string blob(128, 'a');
for (size_t i = 0; i < 10000; ++i) {
auto resp = Run({"set", absl::StrCat(blob, i), blob});
ASSERT_THAT(resp, RespEq("OK"));
}