Skip to content

[TASK] Drop greedy calculation of selector specificity #1021

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

Closed
wants to merge 1 commit into from

Conversation

oliverklee
Copy link
Collaborator

This constructor parameter is not used, and having the specificity calculation always done lazily is not a problem.

@oliverklee oliverklee requested a review from JakeQZ February 27, 2025 11:56
@oliverklee oliverklee self-assigned this Feb 27, 2025
@oliverklee oliverklee marked this pull request as draft February 27, 2025 11:59
@oliverklee oliverklee removed the request for review from JakeQZ February 27, 2025 12:00
@oliverklee oliverklee force-pushed the task/drop-greedy-specificity branch 2 times, most recently from beea798 to 1ba847d Compare February 27, 2025 19:01
@oliverklee oliverklee added the blocked Needs another issue to be resolved first label Feb 27, 2025
@oliverklee oliverklee force-pushed the task/drop-greedy-specificity branch 4 times, most recently from cd62676 to 8d91989 Compare March 1, 2025 09:31
oliverklee added a commit that referenced this pull request Mar 1, 2025
This avoids additional state that makes it hard to compare
selectors for equality.

Also, this will improve performance for cases where the
specificity is not needed (but will slightly worsen
performance where the specificity is queried multiple times
on the same selector instance).

Closes #1021
oliverklee added a commit that referenced this pull request Mar 1, 2025
This avoids additional state that makes it hard to compare
selectors for equality.

Also, this will improve performance for cases where the
specificity is not needed (but will slightly worsen
performance where the specificity is queried multiple times
on the same selector instance).

Closes #1021
oliverklee added a commit that referenced this pull request Mar 1, 2025
This avoids additional state that makes it hard to compare
selectors for equality.

Also, this will improve performance for cases where the
specificity is not needed (but will slightly worsen
performance where the specificity is queried multiple times
on the same selector instance).

Closes #1021
@oliverklee oliverklee force-pushed the task/drop-greedy-specificity branch from 8d91989 to 5674ca9 Compare March 1, 2025 11:06
oliverklee added a commit that referenced this pull request Mar 2, 2025
This avoids additional state that makes it hard to compare
selectors for equality.

Also, this will improve performance for cases where the
specificity is not needed (but will slightly worsen
performance where the specificity is queried multiple times
on the same selector instance).

Closes #1021
This constructor parameter is not used, and having the
specificity calculation always done lazily is not a problem.
@oliverklee oliverklee force-pushed the task/drop-greedy-specificity branch from 5674ca9 to 34e1988 Compare March 2, 2025 14:08
oliverklee added a commit that referenced this pull request Mar 2, 2025
This avoids additional state that makes it hard to compare
selectors for equality.

Also, this will improve performance for cases where the
specificity is not needed (but will slightly worsen
performance where the specificity is queried multiple times
on the same selector instance).

Closes #1021
@JakeQZ JakeQZ closed this in #1028 Mar 3, 2025
JakeQZ pushed a commit that referenced this pull request Mar 3, 2025
This avoids additional state that makes it hard to compare
selectors for equality.

Also, this will improve performance for cases where the
specificity is not needed.

Closes #1021
@oliverklee oliverklee deleted the task/drop-greedy-specificity branch March 3, 2025 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Needs another issue to be resolved first
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant