From e0c3d673cc74080ef14f3cb0095ce33c514d7fbf Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Tue, 9 Jun 2020 14:29:18 +0200 Subject: [PATCH] Reduce number of IO threads --- sf-stream/include/stream_config.hpp | 2 +- sf-stream/src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sf-stream/include/stream_config.hpp b/sf-stream/include/stream_config.hpp index beea625..8d8b18b 100644 --- a/sf-stream/include/stream_config.hpp +++ b/sf-stream/include/stream_config.hpp @@ -1,7 +1,7 @@ namespace stream_config { // N of IO threads to receive data from modules. - const int STREAM_ZMQ_IO_THREADS = 4; + const int STREAM_ZMQ_IO_THREADS = 2; // How long should the RECV queue be. const size_t STREAM_RCVHWM = 100; // Size of buffer between the receiving and sending part. diff --git a/sf-stream/src/main.cpp b/sf-stream/src/main.cpp index cc65e45..78e798d 100644 --- a/sf-stream/src/main.cpp +++ b/sf-stream/src/main.cpp @@ -55,7 +55,7 @@ int main (int argc, char *argv[]) auto n_lost_pulses = receiver.get_next_image(meta, data); if (n_lost_pulses > 0) { - cout << "sf_stream:resync_lost_pulses " << n_lost_pulses << endl; + cout << "sf_stream:sync_lost_pulses " << n_lost_pulses << endl; } auto end_time = steady_clock::now();