Bug 1855445 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

[This profile](https://share.firefox.dev/3t9tpPx) was [shared on Reddit](https://www.reddit.com/r/firefox/comments/16teflu/slow_startup_for_firefox/) by a user. It shows a long time (5 seconds) spent waiting on startup, presumably on `WaitForSingleObject(event.get(), 30000);` in `nsWindowsPackageManager::GetCampaignId`, as part of `TelemetryStartup`. This delay of 5 seconds (which could be up to 30 seconds in fact) seems unreasonable for something that blocks startup.

[:bhearsum], is there any way that we could avoid waiting here?
[This profile](https://share.firefox.dev/3t9tpPx) was [shared on Reddit](https://www.reddit.com/r/firefox/comments/16teflu/slow_startup_for_firefox/) by a user. It shows a long time (5 seconds) spent waiting on startup, presumably [on `WaitForSingleObject(event.get(), 30000);` in `nsWindowsPackageManager::GetCampaignId`](https://searchfox.org/mozilla-central/source/toolkit/system/windowsPackageManager/nsWindowsPackageManager.cpp#207), as part of `TelemetryStartup`. This delay of 5 seconds (which could be up to 30 seconds in fact) seems unreasonable for something that blocks startup.

[:bhearsum], is there any way that we could avoid waiting on the main thread here?
[This profile](https://share.firefox.dev/3t9tpPx) was [shared on Reddit](https://www.reddit.com/r/firefox/comments/16teflu/slow_startup_for_firefox/) by a user. It shows a long time (5 seconds) spent waiting on startup, presumably on `WaitForSingleObject(event.get(), 30000);` in `nsWindowsPackageManager::GetCampaignId` [here](https://searchfox.org/mozilla-central/source/toolkit/system/windowsPackageManager/nsWindowsPackageManager.cpp#207), as part of `TelemetryStartup`. This delay of 5 seconds (which could be up to 30 seconds in fact) seems unreasonable for something that blocks startup.

[:bhearsum], is there any way that we could avoid waiting on the main thread here?
[This profile](https://share.firefox.dev/3t9tpPx) was [shared on Reddit](https://www.reddit.com/r/firefox/comments/16teflu/slow_startup_for_firefox/) by a user. It shows a long time (5 seconds) spent waiting on startup, presumably on `WaitForSingleObject(event.get(), 30000);` in `nsWindowsPackageManager::GetCampaignId` [here](https://searchfox.org/mozilla-central/source/toolkit/system/windowsPackageManager/nsWindowsPackageManager.cpp#207), as part of `TelemetryStartup`. This delay of 5 seconds (which could be up to 30 seconds in fact) seems unreasonable for something that blocks startup.

[:bhearsum], is there any way that we could avoid waiting on the main thread here? Would it work to just move the waiting part outside of the MTA closure?
[This profile](https://share.firefox.dev/3t9tpPx) was [shared on Reddit](https://www.reddit.com/r/firefox/comments/16teflu/slow_startup_for_firefox/) by a user. It shows a long time (5 seconds) spent waiting on startup, presumably on `WaitForSingleObject(event.get(), 30000);` in `nsWindowsPackageManager::GetCampaignId` [here](https://searchfox.org/mozilla-central/source/toolkit/system/windowsPackageManager/nsWindowsPackageManager.cpp#207), as part of `TelemetryStartup`. This delay of 5 seconds (which could be up to 30 seconds in fact) seems unreasonable for something that blocks startup (or more generally the main thread).

[:bhearsum], is there any way that we could avoid waiting on the main thread here? Would it work to just move the waiting part outside of the MTA closure?
[This profile](https://share.firefox.dev/3t9tpPx) was [shared on Reddit](https://www.reddit.com/r/firefox/comments/16teflu/slow_startup_for_firefox/) by a user. It shows a long time (3.7 seconds) spent waiting on startup, presumably on `WaitForSingleObject(event.get(), 30000);` in `nsWindowsPackageManager::GetCampaignId` [here](https://searchfox.org/mozilla-central/source/toolkit/system/windowsPackageManager/nsWindowsPackageManager.cpp#207), as part of `TelemetryStartup`. This delay of 3. seconds (which could be up to 30 seconds in fact) seems unreasonable for something that blocks startup (or more generally the main thread).

[:bhearsum], is there any way that we could avoid waiting on the main thread here? Would it work to just move the waiting part outside of the MTA closure?
[This profile](https://share.firefox.dev/3t9tpPx) was [shared on Reddit](https://www.reddit.com/r/firefox/comments/16teflu/slow_startup_for_firefox/) by a user. It shows a long time (3.7 seconds) spent waiting on startup, presumably on `WaitForSingleObject(event.get(), 30000);` in `nsWindowsPackageManager::GetCampaignId` [here](https://searchfox.org/mozilla-central/source/toolkit/system/windowsPackageManager/nsWindowsPackageManager.cpp#207), as part of `TelemetryStartup`. This delay of 3.7 seconds (which could be up to 30 seconds in fact) seems unreasonable for something that blocks startup (or more generally the main thread).

[:bhearsum], is there any way that we could avoid waiting on the main thread here? Would it work to just move the waiting part outside of the MTA closure?
[This profile](https://share.firefox.dev/3t9tpPx) was [shared on Reddit](https://www.reddit.com/r/firefox/comments/16teflu/slow_startup_for_firefox/) by a user. It shows a long time (5 seconds) spent waiting on startup, where the biggest part of 3.7 seconds is presumably in `WaitForSingleObject(event.get(), 30000);` in `nsWindowsPackageManager::GetCampaignId` [here](https://searchfox.org/mozilla-central/source/toolkit/system/windowsPackageManager/nsWindowsPackageManager.cpp#207), as part of `TelemetryStartup`. This delay of 3.7 seconds (which could be up to 30 seconds in fact) seems unreasonable for something that blocks startup (or more generally the main thread).

[:bhearsum], is there any way that we could avoid waiting on the main thread here? Would it work to just move the waiting part outside of the MTA closure?
[This profile](https://share.firefox.dev/3t9tpPx) was [shared on Reddit](https://www.reddit.com/r/firefox/comments/16teflu/slow_startup_for_firefox/) by a user. It shows a long time (5 seconds) spent waiting on startup, where the biggest part of 3.7 seconds is presumably spent on `WaitForSingleObject(event.get(), 30000);` in `nsWindowsPackageManager::GetCampaignId` [here](https://searchfox.org/mozilla-central/source/toolkit/system/windowsPackageManager/nsWindowsPackageManager.cpp#207), as part of `TelemetryStartup`. This delay of 3.7 seconds (which could be up to 30 seconds in fact) seems unreasonable for something that blocks startup (or more generally the main thread).

[:bhearsum], is there any way that we could avoid waiting on the main thread here? Would it work to just move the waiting part outside of the MTA closure?
[This profile](https://share.firefox.dev/3t9tpPx) was [shared on Reddit](https://www.reddit.com/r/firefox/comments/16teflu/slow_startup_for_firefox/) by a user. It shows a long time (5 seconds) spent waiting on startup, where the biggest part of 3.7 seconds is presumably spent on `WaitForSingleObject(event.get(), 30000);` in `nsWindowsPackageManager::GetCampaignId` [here](https://searchfox.org/mozilla-central/source/toolkit/system/windowsPackageManager/nsWindowsPackageManager.cpp#207), as part of `TelemetryStartup`. This delay of 3.7 seconds (which could theoretically be up to 30 seconds in fact) seems unreasonable for something that blocks startup (or more generally the main thread).

[:bhearsum], is there any way that we could avoid waiting on the main thread here? Would it work to just move the waiting part outside of the MTA closure?
[This profile](https://share.firefox.dev/3t9tpPx) was [shared on Reddit](https://www.reddit.com/r/firefox/comments/16teflu/slow_startup_for_firefox/) by a user. It shows a long time (5 seconds) spent waiting on startup, where the biggest part of 3.7 seconds is presumably spent on `WaitForSingleObject(event.get(), 30000);` in `nsWindowsPackageManager::GetCampaignId` [here](https://searchfox.org/mozilla-central/source/toolkit/system/windowsPackageManager/nsWindowsPackageManager.cpp#207), as part of `TelemetryStartup`. This delay of 3.7 seconds (which could theoretically be up to 30 seconds in fact) seems unreasonable for something that blocks startup (or more generally the main thread).

[:bhearsum], is there any way that we could avoid waiting on the main thread here? Would it work to just move the waiting part outside of the MTA closure? (Maybe not if this is already on the main thread)

Back to Bug 1855445 Comment 0