-
Notifications
You must be signed in to change notification settings - Fork 615
Using a linked list for fast efficient tracking of [publisher confirm] delivery tags #836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I like this idea. Please rebase this against master. |
Done :) |
|
@stebet Technically, you didn't rebase the branch as asked, you merged |
Gahhh you are right, my git-foo gets messed up sometimes. I'll see if I can fix it. |
|
merging is fine with me :)
… On 15 May 2020, at 03:13, Stefán Jökull Sigurðarson ***@***.***> wrote:
@stebet Technically, you didn't rebase the branch as asked, you merged master into your branch. Not the same thing! 😀
Gahhh you are right, my git-foo gets messed up sometimes. I'll see if I can fix it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
45a9d78 to
d16050d
Compare
Proposed Changes
This PR adds deliveryTag tracking using a linked list. Since the list and the delivery tags are only ever manipulated inside locks we can guarantee that the list contains unique values and is always sorted, making it a very fast way of keeping track of pending items. This is better than the original change I made where i stopped tracking individual tags and used separate counters, since now all delivery tags can be tracked which should make debugging easier in case of errors, now that the list is always available.
Also using a CountdownEvent do replace the Monitor.Pulse logic to signal when all delivery tags have been confirmed, simplifying code and reducing lock contention.
Types of Changes
Checklist
CONTRIBUTING.mddocumentFurther Comments
If this is a relatively large or complex change, kick off the discussion by
explaining why you chose the solution you did and what alternatives you
considered, etc.