-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
26 lines (18 loc) · 871 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
A scala port of Basho's Bitcask - local key/value store (http://bitbucket.org/basho/bitcask)
The Bitcask is soooooooo simple(http://downloads.basho.com/papers/bitcask-intro.pdf), that I think I can write my own.
There are some different between Bitcask and bitcask-scala.
bitcask-scala set the valueSize to 0xFFFFFFFF as this record has been removed.
But Bitcask use <<"bitcask_tombstone">> as removed value.
I use RandomAccessFile, it will flush every writing.
And I do not implement lock, merge and fold.
I run it on my Intel Core Dou E6550, Mint 8 (32bit) PC. FASTER than Bitcask:)
(Scala 2.8.0.RC1)
8.927000 s for writing 1048576 k/vs
0.008513 ms per writing
19.451000 s for reading 1048576 k/vs
0.018550 ms per reading
(Scala 2.8.0.RC2)
8.728000 s for writing 1048576 k/vs
0.008324 ms per writing
18.691000 s for reading 1048576 k/vs
0.017825 ms per reading