You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A hardcoded delay we introduced of 1 second to wait for the HTTP server to start on the Gateway app
We can play around with our 1-second delay, or try pinging the HTTP server directly to figure out if it's running. But we can't do much about the system call. I feel it can be extra slow if it's waking up the Gateway app.
There's a 1-second delay indeed. I must've done the math wrong for the Pixel 5. I've started Letro a few times on the Pixel 5 and GatewayClient.bind() takes at least 1.5 seconds, which makes sense.
I'm more interested in the system call, since that must be what's having the biggest impact on older devices where this can take 3 or so seconds. Looking at the stuff around ServiceInteractor I get the impression that we're waiting for the Awala app to start and be bound -- is this correct?
If so, it'd be interesting to explore what we can do speed this up in the Awala app. Especially if there's any low-hanging fruit there. But I wouldn't do that just yet as I'm more concerned about #336.
Using the logging from Letro, we can see that
GatewayClient.bind()
takes around 3 seconds on a Pixel 2 (Android 11):It's around 800ms on a Pixel 5 (Android 13).
The text was updated successfully, but these errors were encountered: