Commit graph

927 commits

Author SHA1 Message Date
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
Bradley C. Kuszmaul
17fc9acfa8 use TAGMALLOC again
git-svn-id: file:///svn/tokudb@92 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-07 23:13:56 +00:00
Bradley C. Kuszmaul
0344ea4ae8 Try using an auto variable where a malloc was used in the smooth fun
git-svn-id: file:///svn/tokudb@91 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-07 22:39:23 +00:00
Rich Prohaska
e323d20acc oops, run all of the pma tests
git-svn-id: file:///svn/tokudb@90 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-06 19:54:08 +00:00
Rich Prohaska
6a8eb4ed2a update pma cursors whenever the kv pairs are moved in the pma index.
add pma_bulk_insert functionality.



git-svn-id: file:///svn/tokudb@89 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-06 19:43:27 +00:00
Rich Prohaska
e3c9ea0202 change the pma index from an array of pairs to an array of pointers
to the key and value.  this change was made to address the slow 
insert performance on an amd64 machine.



git-svn-id: file:///svn/tokudb@87 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-03 17:21:20 +00:00
Bradley C. Kuszmaul
681e132378 Add the benchmark test
git-svn-id: file:///svn/tokudb@83 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-01 20:53:40 +00:00
Bradley C. Kuszmaul
226afd335b Add the benchmark test
git-svn-id: file:///svn/tokudb@82 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-01 20:53:18 +00:00
Bradley C. Kuszmaul
398a447dea valgrind runs on everything
git-svn-id: file:///svn/tokudb@81 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-01 17:25:22 +00:00
Bradley C. Kuszmaul
db3ba97ee5 Valgrind caught an error (uninitialized dirty bit)
git-svn-id: file:///svn/tokudb@80 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-01 16:01:52 +00:00
Bradley C. Kuszmaul
97d2b0d8aa Get rid of a bunch of valgrind warnings (none of which are real errors, probably)
git-svn-id: file:///svn/tokudb@76 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-01 02:37:21 +00:00
Bradley C. Kuszmaul
14f557112f Catch a test that happened to work
git-svn-id: file:///svn/tokudb@75 c7de825b-a66e-492c-adef-691d508d4ae1
2007-07-31 21:59:33 +00:00