Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

BufferMap #3

Closed
nodech opened this issue Jul 14, 2018 · 2 comments
Closed

BufferMap #3

nodech opened this issue Jul 14, 2018 · 2 comments

Comments

@nodech
Copy link
Member

nodech commented Jul 14, 2018

I was experimenting with buffer maps as well, I also looked into bdb to get BufferMap not convert buffers at all (Similar to std::map) because of the js memory overhead when working with strings (fortunately I don't need huge keys), I ran several benchmarks today after seeing
bcoin-org/bcoin/issues/533

Is there any reason to use rbt for memdb ?

@chjj

@chjj
Copy link
Member

chjj commented Jul 14, 2018

rbt is used because we need sorted keys in order to emulate leveldb iterators.

@nodech
Copy link
Member Author

nodech commented Jul 14, 2018

Thanks. Forgot about sorting, wanted buffers as keys so much. :)

@nodech nodech closed this as completed Jul 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants