Re:Stevedekorte's vertex.js
by niktech on Friday May 28, 2010 @08:21AM
(#1386199)
How is Tokio Cabinet used? I was trying to find code that uses Tokyo Tyrant to interface with Tokyo Cabinet but didn't find any. I did find a compiled tokyocabinet.o object file - does anyone know where/how it's used since it's not compiled into Node as an extension?
[ Parent
| on HN ]
Re:Stevedekorte's vertex.js
by BrianHammond on Friday May 28, 2010 @08:57AM
(#1386256)
.node files are "addons". See the following:
http://github.com/stevedekorte/vertex.js/blob/master/lib/Ver...
http://github.com/stevedekorte/vertex.js/tree/master/lib/Ver...
Re:Stevedekorte's vertex.js
by richcollins on Friday May 28, 2010 @11:25AM
(#1386643)
TokyoCabinet is embedded through the http://github.com/edvakf/node-tokyocabinet node addon.
It's used to implement storage (b-tree). Each vertex is a set of key value pairs in the following format:
pid/s/name (slot record) pid/m/name (meta record) pid/p/name (private record)
Since all keys are lexically ordered, you can efficiently iterate (and jump to) vertex records using a cursor.