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.