CockroachDB and rocksdb

Looking at https://github.com/cockroachdb/cockroach/blob/54986344933bff1bed0a0991d03bbc0ee19c45a0/storage/engine/rocksdb/db.h

and the corresponding cc file, it seems that cockroachDB has its own C wrapper around RocksDB C++ functions. Not sure why no one tried to swig the C++ code.

2 Likes

Looks like swig does interoperate with Go. I think one thing to try would be performance. Maybe swig produces a less performant code than cgo? Any performance decrease at this level would significantly affect us.

OTOH, if there’s no performance decrease and swig allows us to use C++ apis, that’d be worth investigating. Also, how bad the code has to look to be able to use C++ apis, in terms of swig vs cgo.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.