mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-14 01:37:56 +08:00
Problem: ZMTP v1 static allocator is needlessly resized
Solution: don't do it, resizing the shared allocator makes sense as it can take the message buff for zero copy, but the static allocator is fixed
This commit is contained in:
parent
061ce6cea1
commit
397ac80850
@ -58,7 +58,8 @@ class c_single_allocator
|
||||
|
||||
std::size_t size () const { return _buf_size; }
|
||||
|
||||
void resize (std::size_t new_size_) { _buf_size = new_size_; }
|
||||
// This buffer is fixed, size must not be changed
|
||||
void resize (std::size_t new_size_) { LIBZMQ_UNUSED (new_size_); }
|
||||
|
||||
private:
|
||||
std::size_t _buf_size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user