Skip to content

1.x: update and bugfix to SubscribingPerf #3480

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

Merged
merged 1 commit into from
Oct 29, 2015

Conversation

akarnokd
Copy link
Member

Note: this doesn't change any main class, just a perf class.

  • Two of the tests used the wrong subscriber type.
  • The benchmark layout allowed stack allocation instead of heap allocation and thus showing less overhead than expected. By letting consuming the Subscribers via blackhole, this JIT optimization is negated as it should be.
  • Added a benchmark which should help verify the overhead of checking isUnsubscribed within range in 1.x: reduce Subscriber's creation overhead #3479 because I suspect that will get worse there.

Benchmark values: (i7 4790, Windows 7 x64, Java 8u66):

image

Two of the tests used the wrong subscriber.

Added a benchmark which should help verify the overhead of checking
isUnsubscribed within range in ReactiveX#3479 because I suspect that will get
worse there.
@akarnokd akarnokd added this to the 1.0.x milestone Oct 29, 2015
akarnokd added a commit that referenced this pull request Oct 29, 2015
1.x: update and bugfix to SubscribingPerf
@akarnokd akarnokd merged commit b905d30 into ReactiveX:1.x Oct 29, 2015
@akarnokd akarnokd deleted the SubscribingPerfUpdate branch October 29, 2015 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant