{{ message }}
1.x: replay request coordination reduce overhead#3470
Merged
akarnokd merged 1 commit intoJun 15, 2016
Conversation
00c1727 to
0d6cf2d
Compare
Member
Author
0d6cf2d to
910000c
Compare
Member
Author
|
I've updated the code to avoid the synchronized block on each replay attempt in case the cached version of the InnerProducers is still the same as the set's version. |
Collaborator
|
I haven't reviewed the changes in detail yet but I do notice that OpenHashSet doesn't have any dedicated unit tests. |
910000c to
464568d
Compare
Member
Author
|
I've added a unit test for |
464568d to
53a74e4
Compare
Member
Author
|
Strangely, the test doesn't crash with Java 8. Must be some difference between what type for-each extracts. |
Contributor
|
@akarnokd needs rebase on latest |
Member
Author
|
Thanks. Working on it. |
713fbe1 to
b361d7a
Compare
Member
Author
|
Rebased. |
Contributor
|
I like this a lot, and the results are really impressive. Code looks good to me, cleaner than the previous implementation too. 👍 |
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Reported in #3469.
This change will make sure whenever a new subscriber arrives, the
request coordination doesn't scan every other subscriber unnecessary.
(They will trigger a manageRequests individually anyway).
Unfortunately, I can't make the subscription registration constant (via a HashSet) because that would slow down the dispatching loop (which is quite expensive to for-each over compared to a plain array).
Note also that this will likely conflict with #3454.
I get the following numbers with the program in #3469.