Source

yatce /

Filename Size Date modified Message
c_src
ebin
src
test
189 B
707 B
40 B
34.3 KB
87 B
15 B
1.8 KB
0 B
1.6 KB
54 B
11.4 KB
16 B
yatce - Yet Another Tokyo Cabinet Erlang binding

* Abstract

For users who want to use Tokyo Cabinet from Erlang.

* Current Status 

  Working well. But Erlang linkedin driver (say, port) said to be bottleneck,
 But port_control runs in the same thread context with Erlang code. 
 Simple performance test (written in porformer.erl) shows the result that,
 insertion performance reaches 6500 qps, and lookup performance reaches 
 29000 qps; is this a row performance of Tokyo Cabinet? (I expect TC makes
 much better performance)
  
  Currently, and Temporarily, it compiles in MacOSX and Ubuntu 9.04 - users
need edit Makefile ( just comment-out and comment-in a single line ).

  See ebin/tctest.erl for sample programs.


* Compilation

  Edit this line in Makefile.
>>>
c_src/Makefile: 
## on Mac
#	sed -e 's/__INCLUDE__/MacOS\.mk/'  c_src/Makefile.in > $@
## on Ubuntu / Debian
	sed -e 's/__INCLUDE__/Ubuntu\.mk/'  c_src/Makefile.in > $@
## on CentOS, other linux which erts directly installed in /usr/local
#	sed -e 's/__INCLUDE__/CentOS\.mk/'  c_src/Makefile.in > $@
<<<


* TODOs

-autoconfize
-compatilibily in other environment: Linux, *BSD, Solaris.
-performance test (is port_control a really bottleneck?)
-documentation
-documentation
-documentation :P

* RELATED PROJECTS ... orz

-Tokyo Cabinet - what I want to bind
  http://tokyocabinet.sourceforge.net/

-tcerl - Erlang port of Tokyo Cabinet
  http://code.google.com/p/tcerl/
  http://dukesoferl.blogspot.com/2008/06/tokyocabinet-and-mnesia.html

* Interface

 going to make compliant with tokyocabinet.idl

* License

 see GPLv3.
 http://www.gnu.org/licenses/