mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
try multiple brt fanout's
git-svn-id: file:///svn/tokudb@197 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
4a0ff58aa7
commit
9f70fff85d
2 changed files with 15 additions and 1 deletions
|
@ -15,6 +15,10 @@ endif
|
|||
CFLAGS = -Wall -W $(OPTFLAGS) -g $(GCOV_FLAGS) $(PROF_FLAGS) -Werror $(FPICFLAGS)
|
||||
LDFLAGS = $(OPTFLAGS) -g $(GCOV_FLAGS) $(PROF_FLAGS)
|
||||
|
||||
ifdef BRT_FANOUT
|
||||
CPPFLAGS += -DBRT_FANOUT=$(BRT_FANOUT)
|
||||
endif
|
||||
|
||||
|
||||
# When debugging, try: valgrind --show-reachable=yes --leak-check=full ./brt-test
|
||||
|
||||
|
@ -44,6 +48,13 @@ check: bins
|
|||
$(DTOOL) ./hashtest
|
||||
# ./mdict-test
|
||||
|
||||
check-fanout:
|
||||
let BRT_FANOUT=4; \
|
||||
while [ $$BRT_FANOUT -le 16 ] ;do \
|
||||
make clean; make check BRT_FANOUT=$$BRT_FANOUT; \
|
||||
let BRT_FANOUT=BRT_FANOUT+1; \
|
||||
done
|
||||
|
||||
# pma: PROF_FLAGS=-fprofile-arcs -ftest-coverage
|
||||
key.o: brttypes.h key.h
|
||||
pma-test.o: pma-internal.h pma.h yerror.h memory.h ../include/ydb-constants.h
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
|
||||
typedef long long diskoff; /* Offset in a disk. -1 is the NULL pointer. */
|
||||
|
||||
enum { TREE_FANOUT = 16 }; //, NODESIZE=1<<20 };
|
||||
#ifndef BRT_FANOUT
|
||||
#define BRT_FANOUT 16
|
||||
#endif
|
||||
enum { TREE_FANOUT = BRT_FANOUT }; //, NODESIZE=1<<20 };
|
||||
enum { KEY_VALUE_OVERHEAD = 8 }; /* Must store the two lengths. */
|
||||
struct nodeheader_in_file {
|
||||
int n_in_buffer;
|
||||
|
|
Loading…
Add table
Reference in a new issue