-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
perf: bypass duplexify #29
Conversation
Bypasses duplexify and pipes encode, socket, decode directly without any intermediate proxy.
Would be nice if multileveldown provided a less hacky way to do this... |
The goal here is to skip this line, if I understand it correctly? https://github.com/Level/multileveldown/blob/52f4861fc37500bfed167114f007bfce3104fc77/leveldown.js#L79. |
Yep and avoid the overhead and complexity of an intermediate stream. |
The less hacky way would be to support a second argument here, defaulting to null: |
Yep. But that would require updating multileveldown. |
I worry this will have a side effects, because:
|
I'm more worried about having duplexify than not having it.
Yes. |
This makes no difference in my benchmarks, at least not after removing much bigger bottlenecks. In |
Can I follow many-level somewhere? |
I'll post something in Level/abstract-level#14 once I've pushed the repo |
Bypasses duplexify and pipes encode, socket, decode directly without any intermediate proxy.