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

Operator debounce2 #1094

Merged
merged 2 commits into from
Apr 30, 2014
Merged

Conversation

akarnokd
Copy link
Member

Operator Debounce again with improvements as discusssed in #1075

For Issue #1060

@akarnokd akarnokd mentioned this pull request Apr 25, 2014
57 tasks
@cloudbees-pull-request-builder

RxJava-pull-requests #1004 FAILURE
Looks like there's a problem with this pull request

};
ssub.set(debounceSubscriber);

debouncer.unsafeSubscribe(debounceSubscriber);
Copy link
Member

Choose a reason for hiding this comment

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

This is a really inefficient operator! The use case requires this behavior, but every single onNext will cause a new Observable, Subscriber, and CompositeSubscription. Not pretty.

Copy link
Member Author

Choose a reason for hiding this comment

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

There are many operators that subscribe to an observable on each onNext call.

Copy link
Member

Choose a reason for hiding this comment

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

Oh I know ... I just wish I could think of a way to make it less expensive!

@benjchristensen benjchristensen merged commit 45d0eaf into ReactiveX:master Apr 30, 2014
@akarnokd akarnokd deleted the OperatorDebounce2 branch April 30, 2014 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants