mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-11 18:17:14 +01:00
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:
committed by
Luca Boccassi
parent
cfef04035c
commit
0897b3e07b
@@ -80,7 +80,7 @@ namespace zmq
|
||||
|
||||
void set_user_id (const void *user_id, size_t size);
|
||||
|
||||
blob_t get_user_id () const;
|
||||
const blob_t &get_user_id () const;
|
||||
|
||||
const metadata_t::dict_t& get_zmtp_properties () {
|
||||
return zmtp_properties;
|
||||
|
||||
Reference in New Issue
Block a user