▲ | deepsun 4 days ago | ||||||||||||||||||||||||||||||||||||||||
The main problem was always the same -- all the RPC libraries are designed to hide where the round-trip happens, but in real world you always want to know where and how the round-trip happens. Just read about Cap'n Web array .map() [1] -- it's hard to understand where the round-trip is. And that is not a feature, that's a bug -- in reality you want to easily tell what the code does, not hide it. [1] https://blog.cloudflare.com/capnweb-javascript-rpc-library/#... | |||||||||||||||||||||||||||||||||||||||||
▲ | kentonv 4 days ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||
The round trip happens when you `await` the result. You can tell that promise pipelining isn't adding any round trips because you set it all up in a series of statements without any `await`s. At the end you do one `await`. That's your round trip. | |||||||||||||||||||||||||||||||||||||||||
|