fs2
fs2 copied to clipboard
bpt.Remove is a bit slow. Any ways to speed it up?
bpt.Remove(buf, func(value []byte) bool {
return true
})
any other function / possibility to remove quicker?
copy(buf,k)
bpt.DoFind(buf, func(key, value []byte) error {
bpt.Remove(key, func(value []byte) bool {
return true
})
// do stuff with the keys and values
return nil
})
seems like doing so speed it up for empty keys.
any other ways than this by modifying core code?