calid/zmq-ffi — pull request #5 by klaus (2014-01-17 15:13:51+00:00)
Title: Unicode

Hi Calid!

sorry to bother you again, but we are not unicode safe yet.

The test will show the problem and I decided to take the same solution approach as the python team took. Otherwise you would have to decode ALL message parts via decode_utf8 which is way to expensive in the zeromq context. After all, it's all about *speed*.

the recv_string() and recv_multipart_string() methods can be used for convenience.

If you do not like them, just drop 'em and i'll add them to the ZMQx::Class package which much rather aims at convenience.

thx,
lg,k