Skip to content

script: Use children_unrooted in node insert - #45760

Merged
TimvdLippe merged 1 commit into
servo:mainfrom
Narfinger:unrooted-insert
Jun 17, 2026
Merged

script: Use children_unrooted in node insert#45760
TimvdLippe merged 1 commit into
servo:mainfrom
Narfinger:unrooted-insert

Conversation

@Narfinger

@Narfinger Narfinger commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

This uses the children_unrooted function in Node::insert instead of the rooted version, saving us roughly 0.6% (in ScriptThread) on a a sample run of github. As these elements are anyway "not rooted" via the rooted vector, this does not change functionality.

Testing: Does not change functionality.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
@Narfinger
Narfinger marked this pull request as ready for review June 17, 2026 13:07
@Narfinger
Narfinger requested a review from gterzian as a code owner June 17, 2026 13:07
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jun 17, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jun 17, 2026
@TimvdLippe
TimvdLippe added this pull request to the merge queue Jun 17, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jun 17, 2026
Merged via the queue into servo:main with commit 0d2d16e Jun 17, 2026
36 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jun 17, 2026
@Narfinger
Narfinger deleted the unrooted-insert branch June 18, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants