Skip to content

Commit 6bde91e

Browse files
authored
chore: remove zset/t_zset files (#5387)
Move the rest of t_zset dependencies into sorted_map files Signed-off-by: Roman Gershman <[email protected]>
1 parent 29e9414 commit 6bde91e

13 files changed

+471
-1061
lines changed

src/core/bptree_set_test.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#include <random>
1111

1212
extern "C" {
13+
#include "redis/sds.h"
1314
#include "redis/zmalloc.h"
14-
#include "redis/zset.h"
1515
}
1616

1717
#include "base/gtest.h"
@@ -300,6 +300,7 @@ TEST_F(BPTreeSetTest, HalfRanges) {
300300
ASSERT_TRUE(path.Empty());
301301
}
302302

303+
#if 0
303304
TEST_F(BPTreeSetTest, MemoryUsage) {
304305
zskiplist* zsl = zslCreate();
305306
std::vector<sds> sds_vec;
@@ -346,6 +347,7 @@ TEST_F(BPTreeSetTest, MemoryUsage) {
346347
ASSERT_GT(mi_alloc.used(), 0u);
347348
LOG(INFO) << "df btree: " << double(mi_alloc.used()) / sds_vec.size() << " bytes per entry";
348349
}
350+
#endif
349351

350352
TEST_F(BPTreeSetTest, InsertSDS) {
351353
vector<ZsetPolicy::KeyT> vals;
@@ -453,6 +455,7 @@ static void BM_FindRandomBPTree(benchmark::State& state) {
453455
}
454456
BENCHMARK(BM_FindRandomBPTree)->Arg(1024)->Arg(1 << 16)->Arg(1 << 20);
455457

458+
#if 0
456459
static void BM_FindRandomZSL(benchmark::State& state) {
457460
zskiplist* zsl = zslCreate();
458461
unsigned iters = state.range(0);
@@ -485,6 +488,7 @@ static void BM_FindRandomZSL(benchmark::State& state) {
485488
}
486489
}
487490
BENCHMARK(BM_FindRandomZSL)->Arg(1024)->Arg(1 << 16)->Arg(1 << 20);
491+
#endif
488492

489493
void RegisterBPTreeBench() {
490494
auto* tlh = mi_heap_get_backing();

src/core/compact_object.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ extern "C" {
1414
#include "redis/stream.h"
1515
#include "redis/util.h"
1616
#include "redis/zmalloc.h" // for non-string objects.
17-
#include "redis/zset.h"
1817
}
1918
#include <absl/strings/str_cat.h>
2019
#include <absl/strings/strip.h>

0 commit comments

Comments
 (0)