-
Notifications
You must be signed in to change notification settings - Fork 22
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
Running brick in broadcast mode takes 4+ seconds #2191
Comments
That shouldn't affect the time it takes because those targets just don't exist. I'm not sure how it worked before, but probably a similar behavior existed but was silent. Retrying is done:
I think currently this retry time is around 4-5s. We can reduce the noise by limiting the broadcast to tabs we actually have access to rather than "all tabs". |
That may be already happening, but I think that array isn't updated? So visiting a permitted host and then navigating away, still leaves the "tab ready" mark in that array if I remember correctly. |
Correct, we aren't removing tabs from tabReady on 1) full navigation, 2) closing the tab. So the tabReady just accumulates a bunch of stale information we then try to message The good news is that the retry time is constant (or relatively constant) w.r.t. number of outdated tabs I wonder it it’s better to try to maintain tabReady or just ping the tabs once prior to broadcast? Or somehow turn off retry in the messaging library? |
I confirmed that the delay is also present in 1.4.10, so I won't hold up the 1.4.11 release for this |
I'm not seeing a huge delay in execution, maybe less than half a second. The only issue is that it does take 4.3 seconds for the action to complete since the background handler still has to wait for the retries to end before responding. This is the log in the origin tab: broadcast.movI'll fix: |
Steps to Reproduce
The RUN_BRICK subcall for each tab is attempting 11 times:
Investigation
The text was updated successfully, but these errors were encountered: