Commit a5ac1652 authored by Kirill Smelkov's avatar Kirill Smelkov

X Ask1: switch to sending directly over link

- BenchmarkLinkNetPipeRTT-4         300000              4825 ns/op             225 B/op          5 allocs/op
+ BenchmarkLinkNetPipeRTT-4         500000              3807 ns/op             225 B/op          5 allocs/op
parent 755e3654
...@@ -1523,7 +1523,7 @@ func (link *NodeLink) Ask1(req Msg, resp Msg) (err error) { ...@@ -1523,7 +1523,7 @@ func (link *NodeLink) Ask1(req Msg, resp Msg) (err error) {
defer conn.lightClose() defer conn.lightClose()
err = conn.Send(req) err = conn.sendMsgDirect(req)
if err != nil { if err != nil {
return err return err
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment