Thanks Pieter! Why not passing pointers around? What possible problems can I face?
So far I decided to just pass pointer because it's fast and easy at the same time. I don't need serialize/deserialize data, only "unsafe" code block on c# side (i don't implemented that yet). Assuming that subscriber is fast enough and buffer is big enough i don't see any problems with passing pointer. I'm using ring-buffer and do not allocate anything at runtime. Thanks, Oleg 12.05.2013 20:54, Pieter Hintjens пишет: > Hi Oleg, > > Some general advice: > > - don't optimize code until you need to, measure before and after. > - zero copy is not useful on small messages > - don't pass pointers around > - read the Guide and learn by making simple designs first > - again, don't optimize or try to make designs faster until you really need to > > -Pieter > _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
