Disruptor 2.0

98 views
Skip to first unread message

Jimit Ndiaye

unread,
Aug 30, 2011, 6:04:21 AM8/30/11
to disrup...@googlegroups.com
Disruptor 2.0 for Java has now been released. How soon can we expect Disruptor-net to follow suite?

Olivier Deheurles

unread,
Aug 30, 2011, 10:15:44 AM8/30/11
to disrup...@googlegroups.com
I have ported all changes, trunk is at the same level. I need to produce packages and fix the wiki, that's it

Olivier

Adam Mills

unread,
Aug 31, 2011, 8:16:51 AM8/31/11
to disrup...@googlegroups.com
Submitted patch for bug in current event processor, sequence not being updated after event processed.
While loop's scope had been cut short
http://code.google.com/p/disruptor-net/issues/detail?id=7

Jimit Ndiaye

unread,
Aug 31, 2011, 2:07:47 PM8/31/11
to disrup...@googlegroups.com
Does this include the performance tuning mentioned here? I realize some of that is specific to the Java version but has any of that made it across?

Olivier Deheurles

unread,
Sep 1, 2011, 3:55:55 AM9/1/11
to disrup...@googlegroups.com
Thanks for that, I'll have a look

Olivier

Olivier Deheurles

unread,
Sep 4, 2011, 11:47:23 AM9/4/11
to disrup...@googlegroups.com
Hi,

I had a look to the patch and can now explain :)

This was not a bug, it was by design.

Each EventProcessor keeps track of the current sequence it has processed.

In previous revisions the sequence was a volatile long so every read and write operation was emitting a fence.
As an optimization, instead of writing the sequence for every single event I was "throttling" this publication (to prevent paying the cost of the fence each time).
This optimization was only applied to the last EventProcessor of a chain so there was no risk of slowing down dependent event processors.

The sequence is now no longer using a volatile write in more recent revisions (ie. No fence emitted) so this optimization no longer make sense and I removed it.

Olivier

-----Message d'origine-----
De : disrup...@googlegroups.com [mailto:disrup...@googlegroups.com] De la part de Olivier Deheurles
Envoyé : jeudi 1 septembre 2011 08:56
À : disrup...@googlegroups.com
Objet : Re: Disruptor 2.0

Jimit Ndiaye

unread,
Sep 30, 2011, 4:09:17 AM9/30/11
to disrup...@googlegroups.com
The Java Disruptor is now at v2.6, major additions being the new worker pool implementation. Any idea when Disruptor-net will catch up? Thanks for an awesome project by the way.

Olivier Deheurles

unread,
Sep 30, 2011, 4:20:59 AM9/30/11
to disrup...@googlegroups.com
Hi,

Martin has been very productive over the last few weeks and I did not had much time to port the latest bits. As soon as I have a free weekend I will port all the new stuff ;)

Olivier

Reply all
Reply to author
Forward
0 new messages