Disruptor usage

27 views
Skip to first unread message

Aleksandr Tceluiko

unread,
Mar 19, 2017, 4:42:39 PM3/19/17
to Disruptor-net
Hi,

I'm not sure I got it right. Disruptor can process only objects of single type and I should cram all possible incoming messages to single type?

Mendel Monteiro-Beckerman

unread,
Mar 20, 2017, 4:07:45 AM3/20/17
to Disruptor-net
Yes, that's basically it.  You can cram the incoming message types in a couple of different ways: either by storing references to each message type in the Event type, by using struct unions to do the same but store them in the Event type and finally you can create memory off heap and reference into it by index (Mike Barker has a presentation  at Yow where he mentions this I think).

Aleksandr Tceluiko

unread,
Mar 20, 2017, 8:09:44 AM3/20/17
to Disruptor-net
Thank you

понедельник, 20 марта 2017 г., 11:07:45 UTC+3 пользователь Mendel Monteiro-Beckerman написал:
Reply all
Reply to author
Forward
0 new messages