Skip to content

Conversation

@haampie
Copy link
Contributor

@haampie haampie commented Aug 11, 2025

The negative selectors are very slow, causing API docs to be slower to render.

According to Chrome's devtools, all CSS selectors together on my API page took 2'372'367 match attempts. With this change it's 309'321 match attempts.

Together with #892 I'm getting 368 ms of time to render the page instead of 428 ms from a best of three experiment. I kinda expect static docs to load instantly, which means sub 300ms, but this is OK I guess.

The negative selectors are very slow, causing the API page to very sluggish on load and on window resize.

According to Chrome's devtools, all CSS selectors together on my API page took 35ms with 2'372'367 match attempts.

With this change it's 5ms with 309'321 match attempts.
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.

1 participant