-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
2.x: Improve Observable.takeUntil #6028
Conversation
Algorithm of the operator itself seems unchanged, only event serialization and disposing is different right? I assume LGTM anyway 👍 |
PR state is stuck, I'll close & reopen this. |
Codecov Report
@@ Coverage Diff @@
## 2.x #6028 +/- ##
============================================
+ Coverage 98.26% 98.33% +0.06%
Complexity 6173 6173
============================================
Files 665 665
Lines 44726 44729 +3
Branches 6206 6205 -1
============================================
+ Hits 43951 43985 +34
+ Misses 236 216 -20
+ Partials 539 528 -11
Continue to review full report at Codecov.
|
Benchmark results, this PR: i7 4790, Windows 10 x64, Java 8u172, JMH 1.20 The flowable code did not change but my Windows is sometimes quite noisy.
baseline:
|
5a1e310
to
66087f4
Compare
89% is very impressive improvement, @akarnokd! Will try to think about application of similar pattern in my work then, thanks for posting benchmark 👍 |
This PR upgrades the
Observable.takeUntil
to a newer algorithm (theFlowable
version is up-to-date).Some unit test remnants from the v1 era were upgraded too as the new algorithm no longer disposes the source or other if they terminate on their own (the Reactive Streams specification doesn't allow that anyway).