]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: batch messages instead of chaining futures
authorYingxin Cheng <yingxincheng@gmail.com>
Tue, 29 Jan 2019 12:49:29 +0000 (20:49 +0800)
committerYingxin Cheng <yingxincheng@gmail.com>
Fri, 22 Mar 2019 06:52:23 +0000 (14:52 +0800)
commita1ed20810bbe05f957e73f70cbe55e5416a3d2d9
tree05286af1af898ec1839f625adf46efad195f5b1c
parent55a76b48643cad93e842a7a0e14259ad91c17ca0
crimson/net: batch messages instead of chaining futures

Instead of chaining writes with send_ready, connection will batch
messages in out_q, and will reap them by write_events() in the open
state.

The performance of pingpong is 3.7 times better from observation.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
src/crimson/net/SocketConnection.cc
src/crimson/net/SocketConnection.h