-
Notifications
You must be signed in to change notification settings - Fork 355
Switching FrameType flags back to bits #548
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
…n array when looking up flags Signed-off-by: Robert Roeser <rroeserr@gmail.com>
3118fdd
to
1fe4166
Compare
@DisplayName( | ||
"Rejecting setup by server causes requester RSocket disposal and RejectedSetupException") | ||
@ParameterizedTest | ||
@MethodSource(value = "transports") | ||
@MethodSource(value = "transports")*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is failing due to reactor-netty bug fixed by reactor/reactor-netty#462 in Californium-RELEASE
. Before update It can be worked around with (works in some environments only)test { environment "java.net.preferIPv4Stack", "true"}
in rsocket-transport-netty
buildfile
FrameType(int encodedType) { | ||
this(encodedType, EnumSet.noneOf(Flags.class)); | ||
this(encodedType, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this(encodedType, 0); | |
this(encodedType, Flags.EMPTY); |
IS_REQUEST_TYPE; | ||
|
||
private static class Flags { | ||
private static final int CAN_HAVE_DATA = 0b10000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private static final int CAN_HAVE_DATA = 0b10000; | |
private static final int EMPTY = 0b00000; | |
private static final int CAN_HAVE_DATA = 0b10000; |
Signed-off-by: Robert Roeser <rroeserr@gmail.com>
2e9f5ca
to
e6b3bb9
Compare
* switching frame type flag back to bits so we don't have to traverse an array when looking up flags Signed-off-by: Robert Roeser <rroeserr@gmail.com> * jmh test Signed-off-by: Robert Roeser <rroeserr@gmail.com> * Added an EMPTY flag Signed-off-by: Robert Roeser <rroeserr@gmail.com> Signed-off-by: Robert Roeser <rroeserr@gmail.com>
* reset to snapshots for next release * Switching FrameType flags back to bits (#548) * switching frame type flag back to bits so we don't have to traverse an array when looking up flags * jmh test * Added an EMPTY flag * changes from performance testing for Netty transport, and underlying RSocket core protocol * removing unused imports * switched to netty's IntObjectMap Signed-off-by: Robert Roeser <rroeserr@gmail.com>
Switching FrameType flag back to bits. Current version uses an EnumSet which requires a contains method call. This method traverses and array, which requires you do this every time you created a Frame. This one does a bitmask and equals.