From 3d535b638667ad0fcfff4246fce61c0176a056c4 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 26 Dec 2020 11:54:40 -0800 Subject: fixes #972 Very slow pull/push performance compared to ZMQ This refactors the pipeline protocol to use lightweight mq instead of the more expensive message queue structure. It also provides nicer backpressure and buffering support. The test suite was updated and converted to NUTS as well. This won't completely close the gap, but it should help quite a bit. --- perf/perf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'perf') diff --git a/perf/perf.c b/perf/perf.c index f1995aba..accac621 100644 --- a/perf/perf.c +++ b/perf/perf.c @@ -419,6 +419,10 @@ do_inproc_thr(int argc, char **argv) open_client = nng_pair1_open; open_server = nng_pair1_open; break; + case OPT_PIPELINE0: + open_client = nng_pull0_open; + open_server = nng_push0_open; + break; case OPT_URL: addr = arg; break; -- cgit v1.2.3-70-g09d2