fune/xpcom
Jens Stutte 38dbc8112e Bug 1895438 - Do not add NS_DISPATCH_AT_END in BackgroundEventTarget::Dispatch. r=xpcom-reviewers,nika
The original intention of adding NS_DISPATCH_AT_END always when on the
same pool was to reduce the risk of spinning up unneeded threads.

Bug 1891664 introduced two changes that make this now unwanted:
- we always wait for the dispatching thread to pick up the event
- we give threads a grace timeout before shutting them down

So before bug 1891664 landed, this flag would just have influenced
if we create a new thread, but if there was an idle thread, the event
would just process immediately and in parallel without any latency.

Now the event will wait for the dispatching thread to become idle if
NS_DISPATCH_AT_END is set, which might increase the latency if we are
not at the end of the dispatching event as we are instead in the case of
TaskQueue dispatches.

What's more, the grace timeout reduces the risk of noise from frequent
thread creation and destruction, such that creating a new thread when
there is load we can immediately serve is actually best for latency.

Differential Revision: https://phabricator.services.mozilla.com/D212399
2024-06-04 07:20:11 +00:00
..
base Bug 1900050 - Optimize CycleCollectedRuntime's sweeping of nursery wrappers a little r=sfink,mccr8 2024-06-01 09:08:04 +00:00
build Bug 1895232 - Convert do_GetService to using components::*::service in netwerk/ r=valentin,cookie-reviewers,places-reviewers 2024-05-30 21:18:43 +00:00
components Bug 1895232 - Convert do_GetService to using components::*::service in netwerk/ r=valentin,cookie-reviewers,places-reviewers 2024-05-30 21:18:43 +00:00
docs Bug 1894703 - Add some documentation about using logging.config.modules r=padenot 2024-05-23 08:14:17 +00:00
ds Bug 1899401 - Remove dom.forms.number.hide_spin_buttons_when_no_hover_or_focus pref r=dholbert 2024-05-30 04:35:28 +00:00
geckoprocesstypes_generator
glue Bug 1897479 - Collect single-step data for improper initialization of block-scope static variables in xul. r=rkraesig,win-reviewers 2024-06-03 12:24:42 +00:00
idl-parser Bug 1892481 - More consistently enforce noscript and builtinclass in xpidl, r=xpcom-reviewers,necko-reviewers,valentin,media-playback-reviewers,mccr8,padenot 2024-04-22 18:19:58 +00:00
io Backed out changeset 25f376fb859f (bug 1873973) for causing various regressions. 2024-05-31 15:08:52 -04:00
reflect Bug 1899286 - Remove legacy AIX and HP-UX support r=glandium 2024-05-29 06:57:40 +00:00
rust Bug 1892257 - Move nsStringBuffer to mfbt. r=nika,xpcom-reviewers,glandium 2024-05-14 14:24:26 +00:00
string Bug 1897607 - Inline StringBuffer assignment. r=smaug 2024-05-18 17:33:20 +00:00
system Bug 1881863 - Part 1: Standardize on boolean over bool in xpidl, r=xpcom-reviewers,necko-reviewers,valentin,extension-reviewers,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,search-reviewers,anti-tracking-reviewers,places-reviewers,nalexander,emilio,zombie,sgalich,karlt,lina,Standard8 2024-04-04 18:45:21 +00:00
tests Bug 1891664 - Have a grace timeout before shutting down excess idle threads. r=xpcom-reviewers,necko-reviewers,dom-storage-reviewers,nika,janv,jesup#!xpcom-reviewers 2024-06-01 09:05:53 +00:00
threads Bug 1895438 - Do not add NS_DISPATCH_AT_END in BackgroundEventTarget::Dispatch. r=xpcom-reviewers,nika 2024-06-04 07:20:11 +00:00
windbgdlg
xpidl
metrics.yaml
moz.build