-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
A way to get a deeply nested sublevel in one-go #112
Comments
That's reasonable. Would only require work in the constructor. Slightly easier to achieve in |
Yea that would be useful, I was also wondering why it requires In some cases, I have functions that will just create iterators directly to a specific sublevel, and I'm wondering about the performance impact of creating 3/4 deep sublevels every time I call that function. |
It doesn't. Can you share a snippet of code where you need |
I had to do it in #109. That's the code I'm using to open sublevels: #109 (comment) |
Using my sublevel opener above, creating deeply nested sublevels right now costs quite a significant amount of time. My benchmarks show:
Basically it seems like Right now |
Suppose I have a leveldb instance, but I want to get the sublevel that is nested 2 or 3 times deep. This seems like it currently requires one to call subleveldown n-times, once for each sublevel, but it would be nice to be able to directly acquire the deepest sublevel in one call.
The text was updated successfully, but these errors were encountered: