summaryrefslogtreecommitdiff
path: root/storage/heap/heapdef.h
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/heapdef.h
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/heapdef.h')
-rw-r--r--storage/heap/heapdef.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/heap/heapdef.h b/storage/heap/heapdef.h
index 3fc94062303..b9a3eab3432 100644
--- a/storage/heap/heapdef.h
+++ b/storage/heap/heapdef.h
@@ -50,6 +50,7 @@ typedef struct st_hp_hash_info
{
struct st_hp_hash_info *next_key;
uchar *ptr_to_rec;
+ ulong hash_of_key;
} HASH_INFO;
typedef struct {