-
Notifications
You must be signed in to change notification settings - Fork 226
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
Measuring runtime performance #105
Comments
Do you have more concrete numbers on those different parts? It is going to be slower than not using autodispose for obvious reasons, but it’s hard to see where any issue is without more details |
When tried it in the Rider app, it appeared to take 0.5% of main thread time. I only measured two iterations of the following test: app start + trip start. Wasn't big enough of an issue to dig into more. But did want to write this up in case there was any obvious wins you could think of. |
Going to close this as inactionable for now, happy to revisit if anyone sees anything concerning! |
If I add
.to(new ObservableScoper<RequestLocation>(lifecycle))
to an observable it makes it noticeably slower. Not super slow: just 0.13ms on a pixel (I put this in a loop with 500 iterations and measured the increase in duration). But slower than using a simple composite disposable pattern.Some thoughts from a chat with Zac below
The exec path under the hood when you do this (this point when you call to()):
(this point on happens when you call subscribe())
potential areas of wins:
The text was updated successfully, but these errors were encountered: