tecbot / gorocksdb

gorocksdb is a Go wrapper for RocksDB

Home Page:http://rocksdb.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NewNativeCompactionFilter useful due to slow CGO calls?

jiminoc opened this issue · comments

Can I assume that NewNativeCompactionFilter is in place to allow for a C based implementation of a CompactionFilter due to the fact using the CompactionFilter interface in a Go based filter is extremely slow due to the CGO overhead of calling that Filter for every key you want to potentially filter out?

If that's the case, are there any known examples in the wild or snippets for implementing the C filter in the wild?

thanks!