Repository navigation
script: No longer throttle PerformanceTimeline tasks - #48964
Merged
Merged
Conversation
|
🔨 Triggering try run (#38917007918) for Linux (WPT) |
|
Test results for linux-wpt from try job (#38917007918): Flaky unexpected result (23)
Stable unexpected results that are known to be intermittent (6)
|
|
✨ Try run (#38917007918) succeeded. |
jdm
approved these changes
Oct 16, 2026
jdm
left a comment
Member
There was a problem hiding this comment.
Wonderful! It's a lot easier to follow this code now.
Comment on lines
47
to
48
| /// A "business" counter, reset for each iteration of the event-loop | ||
| taken_task_counter: Cell<u64>, |
Member
There was a problem hiding this comment.
We can remove this field too; it's only written now, never read.
| // 2. Process the first message(artifact of the fact that select always returns a message). | ||
| if !first_msg.is_wake_up() { | ||
| incoming.push(first_msg); | ||
| // 2. Process the first message( artifact of the fact that select always returns a message). |
Member
There was a problem hiding this comment.
Suggested change
| // 2. Process the first message( artifact of the fact that select always returns a message). | |
| // 2. Process the first message (artifact of the fact that select always returns a message). |
| @@ -171,20 +135,6 @@ impl<T: QueuedTaskConversion> TaskQueue<T> { | |||
| // Immediately send non-throttled tasks for processing. | |||
Member
There was a problem hiding this comment.
Suggested change
| // Immediately send non-throttled tasks for processing. |
mrobinson
force-pushed
the
script-stop-throttling-tasks
branch
from
October 16, 2026 17:37
74359c3 to
cc31a75
Compare
mrobinson
enabled auto-merge
October 16, 2026 17:38
The [specification] says:
> The performance timeline task queue is a low priority queue that, if
> possible, should be processed by the user agent during idle periods to
> minimize impact of performance monitoring code.
which means that this throttling is optional ("if possible"). In
addition to causing flakiness in the WPT tests, it doesn't seem like
neither WebKit nor Firefox are doing this. This change removes the
throttling code completely.
In addition, this removes the special behavior for Rendering tasks which
are currently completely unused -- so a special behavior is not
necessary.
[specification]: https://w3c.github.io/performance-timeline/#dfn-performance-timeline-task-source
Signed-off-by: Martin Robinson <[email protected]>
mrobinson
force-pushed
the
script-stop-throttling-tasks
branch
from
October 16, 2026 23:31
cc31a75 to
88e5d37
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The specification says:
which means that this throttling is optional ("if possible"). In
addition to causing flakiness in the WPT tests, it seems like
neither WebKit nor Firefox are doing this. This change removes the
throttling code completely.
In addition, this removes the special behavior for Rendering tasks which
are currently completely unused -- so a special behavior is not
necessary.
Testing: This change fixes a WPT test and flakiness in others.
Fixes: #40819.
Fixes: #44408.