fs2 icon indicating copy to clipboard operation
fs2 copied to clipboard

bpt.Remove is a bit slow. Any ways to speed it up?

Open hiqsociety opened this issue 3 years ago • 1 comments

    bpt.Remove(buf, func(value []byte) bool {
            return true
    })

any other function / possibility to remove quicker?

hiqsociety avatar Mar 20 '21 10:03 hiqsociety

    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?

hiqsociety avatar Mar 20 '21 11:03 hiqsociety