-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Use abstract-leveldown #50
Conversation
that looks very good to me! |
yes yes yes working on getting another NAN release out, might try and get that sorted today will be interesting to see if we can measure any perf gain by shifting some of the code into V8 optimisable code. |
updated to latest nan release, works for 0.8->0.11. BUT, there's an odd test failure that seems to happen every test run in 0.8, occasional test runs in 0.10 and never (I think) in 0.11:
I haven't looked in to it but we probably need to address it before a merge/release |
I see the same test failing in #48, so I'd guess it's unrelated to this. |
Current state is that most things works. I'm having problems with the iterator - the iterator-test sometimes just freezes after a little bit, @rvagg if you have the time and interest it would be very valuable to get your input on what might be causing that. |
Will do, possibly related to the awkwardness of tracking and cleaning up unclosed iterators. I'm busy getting ready for campjs at the moment, I'll either have time while I'm campjs this weekend or shortly thereafter. |
I didn't change any of the code regardings tracking and cleaning up unclosed iterators, so that's all being done in C++-land still. I wanted to get your feedback before trying to move that to JS (and getting the other stuff working). |
Btw, is there any special reasons that cleanup-hanging-iterators-test isn't part of abstract-leveldown? |
Conflicts: package.json src/database.cc src/leveldown.cc
cleanup-hanging-iterators could be part of abstract-leveldown I suppose, I'm trying to think of a reason why not but I guess it's something that may apply to other implementations. |
so, this looks pretty good, there's an issue of style--a couple of things stand out, I'd prefer to see the functions declared straight on the |
Lastly, thoughts on cleaning up unclosed iterators in JS vs C++, I don't mine either way, if you want to move it to JS then it'd certainly be cleaner. I'm fairly confident that the tests will catch you out if you do it wrong so just hack at it and see if you can make it work. |
Cool, I haven't had time to look at this for a couple of days, but will hack on it during the weekend so I'll try and do the last parts then. Including the style fixes. |
feature: Support setting size of LRU-cache
replaced by #97 |
A WIP to fix #36, based upon #48 for now - so that one should probably be merged first.