summaryrefslogtreecommitdiff
path: root/storage/heap/hp_test2.c
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2012-03-23 18:11:29 +0200
committerMichael Widenius <monty@askmonty.org>2012-03-23 18:11:29 +0200
commitde1765fb64dda7c610217c27a6012955f01d88e4 (patch)
tree292516abaed11a44af3ddb838f7f7bfa70fe2478 /storage/heap/hp_test2.c
parentda9aabbbb653274de997763b7f833ac6822f81bf (diff)
downloadmariadb-git-de1765fb64dda7c610217c27a6012955f01d88e4.tar.gz
Speedups:
- Optimize away calls to hp_rec_hashnr() by cashing hash - Try to get more rows / block (to minimize overhead of HP_PTRS) in HEAP tables. storage/heap/_check.c: Optimize away calls to hp_rec_hashnr() by cashing hash. Print cleanups storage/heap/heapdef.h: Added place to hold calculated hash value for row storage/heap/hp_create.c: Try to get more rows / block (to minimize overhead of HP_PTRS) storage/heap/hp_delete.c: Optimize away calls to hp_rec_hashnr() by cashing hash. storage/heap/hp_hash.c: Optimize away calls to hp_rec_hashnr() by cashing hash. Remove some not needed DBUG_PRINT storage/heap/hp_test2.c: Increased max table size as now heap tables takes a bit more space (a few %) storage/heap/hp_write.c: Optimize away calls to hp_rec_hashnr() by cashing hash. Remove duplicated code More DBUG_PRINT storage/maria/ma_create.c: More DBUG_PRINT
Diffstat (limited to 'storage/heap/hp_test2.c')
-rw-r--r--storage/heap/hp_test2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/heap/hp_test2.c b/storage/heap/hp_test2.c
index fe6ef254218..a534a5cf904 100644
--- a/storage/heap/hp_test2.c
+++ b/storage/heap/hp_test2.c
@@ -72,7 +72,7 @@ int main(int argc, char *argv[])
get_options(argc,argv);
bzero(&hp_create_info, sizeof(hp_create_info));
- hp_create_info.max_table_size= 1024L*1024L;
+ hp_create_info.max_table_size= 2*1024L*1024L;
write_count=update=opt_delete=0;
key_check=0;
@@ -642,7 +642,7 @@ static int get_options(int argc,char *argv[])
case 'V':
case 'I':
case '?':
- printf("%s Ver 1.1 for %s at %s\n",progname,SYSTEM_TYPE,MACHINE_TYPE);
+ printf("%s Ver 1.2 for %s at %s\n",progname,SYSTEM_TYPE,MACHINE_TYPE);
puts("TCX Datakonsult AB, by Monty, for your professional use\n");
printf("Usage: %s [-?ABIKLsWv] [-m#] [-t#]\n",progname);
exit(0);