Skip to content

Commit

Permalink
Make Net::ZMQ::Message.data somewhat less horribly inefficient.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnsholt committed Nov 17, 2015
1 parent bf127b0 commit 6e5489c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Net/ZMQ/Message.pm
Expand Up @@ -96,7 +96,7 @@ method data() {
my $buf = buf8.new;
my $zmq_data = zmq_msg_data(self);
for 0..^zmq_msg_size(self) {
$buf ~= buf8.new($zmq_data[$_]);
$buf.push: $zmq_data[$_];
}
return $buf;
}
Expand Down

0 comments on commit 6e5489c

Please sign in to comment.