Reorder fields in some classes for more compact memory layout

This commit is contained in:
Tim Wojtulewicz 2021-07-13 19:12:21 +00:00 committed by Tim Wojtulewicz
parent f849f024e5
commit 9b15db25f6
11 changed files with 22 additions and 24 deletions

View file

@ -118,14 +118,14 @@ public:
* The node's role within the cluster. E.g. manager, logger, worker.
*/
BifEnum::Supervisor::ClusterRole role;
/**
* The host/IP at which the cluster node is listening for connections.
*/
std::string host;
/**
* The TCP port number at which the cluster node listens for connections.
*/
int port;
/**
* The host/IP at which the cluster node is listening for connections.
*/
std::string host;
/**
* The interface name from which the node read/analyze packets.
* Typically used by worker nodes.
@ -324,10 +324,10 @@ private:
Config config;
pid_t stem_pid;
int last_signal = -1;
std::unique_ptr<detail::PipePair> stem_pipe;
detail::LineBufferedPipe stem_stdout;
detail::LineBufferedPipe stem_stderr;
int last_signal = -1;
detail::Flare signal_flare;
NodeMap nodes;
std::string msg_buffer;