Problem: excessive memory allocations around blob_t (#2796)

* Problem: excessive memory allocations around blob_t

Solution: redefine blob_t as a custom type, and use reference/move
semantics where possible
This commit is contained in:
Simon Giesecke
2017-10-21 13:19:51 +02:00
committed by Luca Boccassi
parent cfef04035c
commit 0897b3e07b
33 changed files with 207 additions and 159 deletions

View File

@@ -1491,9 +1491,11 @@ int zmq::socket_base_t::xrecv (msg_t *)
return -1;
}
zmq::blob_t zmq::socket_base_t::get_credential () const
static const zmq::blob_t empty_blob;
const zmq::blob_t &zmq::socket_base_t::get_credential () const
{
return blob_t ();
return empty_blob;
}
void zmq::socket_base_t::xread_activated (pipe_t *)