Skip to content
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

BufferedEmittingPublisher as replacement for OriginThreadPublisher #1830

Merged
merged 16 commits into from May 22, 2020

Conversation

danielkec
Copy link
Contributor

@danielkec danielkec commented May 19, 2020

Simplified replacement for OriginThreadPublisher , performance is better and api is cleaner.

Benchmark                            Mode  Cnt   Score   Error  Units
EmitterTest.testEmitterReqMillion   thrpt   20  21.261 ± 0.160  ops/s
EmitterTest.testEmitterReqOneByOne  thrpt   20  11.845 ± 0.357  ops/s
EmitterTest.testEmitterUnbounded    thrpt   20  44.591 ± 0.131  ops/s
EmitterTest.testOTPReqMillion       thrpt   20  14.702 ± 0.124  ops/s
EmitterTest.testOTPReqOneByOne      thrpt   20   7.707 ± 0.088  ops/s
EmitterTest.testOTPUnbounded        thrpt   20  14.902 ± 0.026  ops/s

JMH test

Used in webclient, webserver, Kafka connector and Multipart #1787

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
@danielkec danielkec changed the title [WIP]: BufferedEmittingPublisher as replacement for OriginThreadPublisher BufferedEmittingPublisher as replacement for OriginThreadPublisher May 20, 2020
@danielkec danielkec self-assigned this May 20, 2020
@danielkec danielkec added the reactive Reactive streams and related components label May 20, 2020
Copy link
Contributor

@romain-grecourt romain-grecourt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 overall. Looks good as a first pass.

@romain-grecourt
Copy link
Contributor

I noticed you are not removing the EmittingPublisher from the kafka module, is that intended ?

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
@danielkec
Copy link
Contributor Author

@romain-grecourt sorry for late response, Kafka connector switched to BEP in the last commit

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change reactive Reactive streams and related components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants