mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-28 03:20:13 +01:00
Problem: one missed optimization opportunity for blob_t map lookup
Solution: create referencing blob_t
This commit is contained in:
@@ -208,7 +208,8 @@ int zmq::router_t::xsend (msg_t *msg_)
|
|||||||
// Find the pipe associated with the routing id stored in the prefix.
|
// Find the pipe associated with the routing id stored in the prefix.
|
||||||
// If there's no such pipe just silently ignore the message, unless
|
// If there's no such pipe just silently ignore the message, unless
|
||||||
// router_mandatory is set.
|
// router_mandatory is set.
|
||||||
blob_t routing_id ((unsigned char*) msg_->data (), msg_->size ());
|
blob_t routing_id ((unsigned char*) msg_->data (), msg_->size (),
|
||||||
|
zmq::reference_tag_t());
|
||||||
outpipes_t::iterator it = outpipes.find (routing_id);
|
outpipes_t::iterator it = outpipes.find (routing_id);
|
||||||
|
|
||||||
if (it != outpipes.end ()) {
|
if (it != outpipes.end ()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user