Skip to content

rules: Avoid tokenizing too much when nesting declarations that look like selectors. #359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

emilio
Copy link
Member

@emilio emilio commented Sep 6, 2023

This speeds up the test-case in Mozilla bug 1851814 to be ~5s to ~300ms on a local opt build.

@emilio
Copy link
Member Author

emilio commented Sep 6, 2023

r? @tiaanl

…like selectors.

This speeds up the test-case in Mozilla bug 1851814 to be ~5s to ~300ms
on a local opt build.

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1851814
@emilio emilio enabled auto-merge September 6, 2023 14:02
@emilio emilio requested a review from tiaanl September 6, 2023 14:08
@emilio emilio added this pull request to the merge queue Sep 11, 2023
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ParseUntilErrorBehavior {
/// Consume until we see the relevant delimiter or the end of the stream.
Consume,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Continue would be a better alternative to Stop.

Merged via the queue into master with commit 88134d4 Sep 11, 2023
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.

2 participants