Skip to content
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

Make matcher 120000% faster #560

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

Sharktheone
Copy link
Member

The current matcher takes 55secs to validate the css from news.ycombinator.com (most of it is from useragent.css). Now it only takes ~40ms, and it takes 2.5 secs from start to the first rendered frame.

@Sharktheone Sharktheone self-assigned this Aug 21, 2024
@Sharktheone Sharktheone added the css3 Any issues related to CSS3 label Aug 21, 2024
/// Parses the internal CSS definition file
#[memoize]
pub fn parse_definition_files() -> CssDefinitions {
fn pars_definition_files() -> CssDefinitions {
Copy link
Member

Choose a reason for hiding this comment

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

typo for parse_definition_files() ?

@Sharktheone Sharktheone merged commit 2830572 into gosub-io:main Aug 22, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css3 Any issues related to CSS3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants