diff --git a/Makefile b/Makefile index 4aad7a3..af2f4b2 100644 --- a/Makefile +++ b/Makefile @@ -212,7 +212,7 @@ test-integration: batch-run-queries integration-tests/enron1m.index0.pr ruby integration-tests/eval.rb integration-tests/testset1.txt bench: benchmark-queries integration-tests/enron1m.index0.pr - ./benchmark-queries integration-tests/enron1m.index integration-tests/testset1.txt + ./benchmark-queries integration-tests/enron1m.index integration-tests/benchset1.txt debug: +make DEBUGOUTPUT=-DDEBUGOUTPUT diff --git a/integration-tests/query-corpus1.txt b/integration-tests/benchset1.txt similarity index 100% rename from integration-tests/query-corpus1.txt rename to integration-tests/benchset1.txt diff --git a/text.c b/text.c index 3d459f9..e655ef9 100644 --- a/text.c +++ b/text.c @@ -194,7 +194,7 @@ RAISING_STATIC(add_posting_to_block(postings_block* block, posting* po)) { } #define MIN_BLOCK_SIZE 32 -#define SOFT_MAX_BLOCK_SIZE 128 // this seems to wrok the best -- but tweak me! +#define SOFT_MAX_BLOCK_SIZE 512 // this seems to work the best -- but tweak me! #define HARD_MAX_BLOCK_SIZE ((64 * 1024) - sizeof(postings_block)) // can never be exceeded RAISING_STATIC(build_new_block(postings_region* pr, uint32_t min_size, uint32_t old_offset, uint32_t* new_offset)) { DEBUG("going to make a new block to hold %u bytes", min_size);