Commit graph

238 commits

Author SHA1 Message Date
Rich Prohaska
d17bae4542 get tree cursor set last working
git-svn-id: file:///svn/tokudb@186 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-24 12:10:49 +00:00
Rich Prohaska
f4a36c5707 tree cursors that can walk the tree
git-svn-id: file:///svn/tokudb@170 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-23 18:07:18 +00:00
Bradley C. Kuszmaul
3571dbeba0 Put back the free
git-svn-id: file:///svn/tokudb@168 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-22 22:08:26 +00:00
Bradley C. Kuszmaul
b730b03a47 Whoops, freed something not malloced
git-svn-id: file:///svn/tokudb@167 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-22 21:41:29 +00:00
Rich Prohaska
e4b74436d7 changed the tree FANOUT from 16 to 4 and brt-test found a path through the cachetable flush function that followed the wrong linked list.
git-svn-id: file:///svn/tokudb@166 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-22 18:50:49 +00:00
Bradley C. Kuszmaul
2fcb4bfaaf Separate rbuf and wbuf so that log.c can use it. Check in a perliminary version of log.c
git-svn-id: file:///svn/tokudb@162 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-21 23:32:17 +00:00
Rich Prohaska
361c348315 get the bound pma
git-svn-id: file:///svn/tokudb@158 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-20 15:50:46 +00:00
Rich Prohaska
f206871b8e speedup the wbuf_int and wbuf_bytes functions based on profile
data from a long benchmark-test.



git-svn-id: file:///svn/tokudb@155 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-17 12:06:31 +00:00
Rich Prohaska
cda74f7896 short cut pma_free
add some debug asserts to pma_free



git-svn-id: file:///svn/tokudb@147 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-16 13:10:29 +00:00
Bradley C. Kuszmaul
1cd311c093 Speedup toku_hashtable_random_pick
git-svn-id: file:///svn/tokudb@134 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-14 18:50:52 +00:00
Bradley C. Kuszmaul
f9a056213e Unroll keycompare
git-svn-id: file:///svn/tokudb@133 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-14 14:19:05 +00:00
Bradley C. Kuszmaul
cc7a1e665c Actually use maybe-faster-malloc
git-svn-id: file:///svn/tokudb@132 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-14 14:11:55 +00:00
Bradley C. Kuszmaul
727b83a59f Speed up keycompare (maybe)
git-svn-id: file:///svn/tokudb@131 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-14 14:01:51 +00:00
Bradley C. Kuszmaul
1bbd6ea804 Fill in the primeidx
git-svn-id: file:///svn/tokudb@130 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 22:59:31 +00:00
Bradley C. Kuszmaul
9c9cff164d Put in error message
git-svn-id: file:///svn/tokudb@129 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 22:51:05 +00:00
Bradley C. Kuszmaul
0d4231e0b2 Use primes right in the hash table
git-svn-id: file:///svn/tokudb@128 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 22:13:40 +00:00
Bradley C. Kuszmaul
8ae9b13b8e Use fewer mallocs in the hash table
git-svn-id: file:///svn/tokudb@127 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 22:07:55 +00:00
Bradley C. Kuszmaul
701339ea1d Use prime numbers for the hash table sizes
git-svn-id: file:///svn/tokudb@126 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 21:53:19 +00:00
Bradley C. Kuszmaul
e9f6f94835 Make the cachetable 127 (prime) instead of 128
git-svn-id: file:///svn/tokudb@125 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 21:23:11 +00:00
Bradley C. Kuszmaul
18412a5f81 Increase buffer pool size
git-svn-id: file:///svn/tokudb@124 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 20:26:23 +00:00
Bradley C. Kuszmaul
11a7c0ab20 Printf fixups
git-svn-id: file:///svn/tokudb@123 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 20:21:53 +00:00
Bradley C. Kuszmaul
415aae3698 Add cumulative and a command-line control to benchmark-test
git-svn-id: file:///svn/tokudb@122 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 20:20:42 +00:00
Bradley C. Kuszmaul
9921b83cf9 Maybe faster key compare?
git-svn-id: file:///svn/tokudb@121 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 20:04:26 +00:00
Bradley C. Kuszmaul
7b2ef97760 Speed up toku_hash_rehash_everything by remembering the hash function
git-svn-id: file:///svn/tokudb@120 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 19:49:06 +00:00
Bradley C. Kuszmaul
a1516c3644 Fix up types for FNV hashing
git-svn-id: file:///svn/tokudb@119 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 19:04:38 +00:00
Bradley C. Kuszmaul
df1d003f01 Use FNV hash function
git-svn-id: file:///svn/tokudb@118 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 18:59:46 +00:00
Bradley C. Kuszmaul
6dc2fb95c6 Use FNV hash function
git-svn-id: file:///svn/tokudb@117 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 18:59:09 +00:00
Bradley C. Kuszmaul
c2f9c7b027 Use FNV hash
git-svn-id: file:///svn/tokudb@116 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 18:55:20 +00:00
Bradley C. Kuszmaul
3f307a1f8f Remove the silly extra check at the end of pmainternal_find
git-svn-id: file:///svn/tokudb@115 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 18:23:31 +00:00
Bradley C. Kuszmaul
30c3503219 Make it work with replace-or-insert
git-svn-id: file:///svn/tokudb@114 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 18:19:57 +00:00
Bradley C. Kuszmaul
b5d05c3f43 Make it work again
git-svn-id: file:///svn/tokudb@113 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 18:05:24 +00:00
Bradley C. Kuszmaul
5061feb58b up
git-svn-id: file:///svn/tokudb@112 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 18:04:39 +00:00
Bradley C. Kuszmaul
ef0260e57c insert_or_replace in one step
git-svn-id: file:///svn/tokudb@111 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 18:01:09 +00:00
Rich Prohaska
360af9e347 oops, delete some debug printf's
git-svn-id: file:///svn/tokudb@110 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 17:35:19 +00:00
Rich Prohaska
fb2ac8746e make the serial key spaces disjoint to avoid duplicate key inserts
git-svn-id: file:///svn/tokudb@109 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 17:31:28 +00:00
Bradley C. Kuszmaul
fed9f63e94 More log stuff
git-svn-id: file:///svn/tokudb@107 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-10 21:39:55 +00:00
Bradley C. Kuszmaul
326da930c4 log-test checks to see if we can find log numbers
git-svn-id: file:///svn/tokudb@106 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-10 21:15:17 +00:00
Rich Prohaska
904da98603 allocate an array of pointers to ctpair's rather than an
array of ctpair's



git-svn-id: file:///svn/tokudb@105 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-10 21:01:24 +00:00
Bradley C. Kuszmaul
b35ac589fe Start implementing a logger
git-svn-id: file:///svn/tokudb@104 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-10 19:24:45 +00:00
Rich Prohaska
381c56c9f9 use pma split in the brt split leaf
git-svn-id: file:///svn/tokudb@103 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-09 18:54:58 +00:00
Bradley C. Kuszmaul
e1c5b6bd16 This works: make CYGWIN=cygwin check
git-svn-id: file:///svn/tokudb@102 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-09 13:35:23 +00:00
Bradley C. Kuszmaul
6e225b70ff Document memory.c and memory.h
git-svn-id: file:///svn/tokudb@101 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-09 13:26:51 +00:00
Rich Prohaska
c22c9736cd make this file portable to compilers other than gcc 4
git-svn-id: file:///svn/tokudb@100 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-09 13:00:24 +00:00
Rich Prohaska
a12290c869 use pma_bulk_insert to deserialize a leaf block
git-svn-id: file:///svn/tokudb@99 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-08 20:58:25 +00:00
Bradley C. Kuszmaul
a87bc1210d Increase size
git-svn-id: file:///svn/tokudb@98 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-08 15:12:15 +00:00
Bradley C. Kuszmaul
1639bb4b43 Increase size
git-svn-id: file:///svn/tokudb@97 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-08 15:06:51 +00:00
Bradley C. Kuszmaul
021490b1cb Get rid of more mallocs
git-svn-id: file:///svn/tokudb@96 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-08 14:59:09 +00:00
Bradley C. Kuszmaul
37b9ab72dd Report on how many fresh mallocs
git-svn-id: file:///svn/tokudb@95 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-08 14:29:31 +00:00
Bradley C. Kuszmaul
3bba4f46d9 Make a malloc that reuses things (if you tell it the size of the free'd thing)
git-svn-id: file:///svn/tokudb@94 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-07 23:38:05 +00:00
Bradley C. Kuszmaul
f94ef8fc9d Count the number of mallocs of different sizes
git-svn-id: file:///svn/tokudb@93 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-07 23:14:09 +00:00