Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
hiqsociety opened this issue Mar 20, 2021 · 1 comment
Open

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

hiqsociety opened this issue Mar 20, 2021 · 1 comment

Comments

@hiqsociety
Copy link

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

any other function / possibility to remove quicker?

@hiqsociety
Copy link
Author

    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?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant