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

Fix the performance of selector span expansion #1929

Merged
merged 1 commit into from
Apr 6, 2023
Merged

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Apr 6, 2023

Instead of calling SourceFile.getText(), which creates string copies
of a substantial subset of the text of the file every time, this
directly accesses the file's underlying code units without doing any
copies.

Closes #1913

@nex3 nex3 requested a review from jathak April 6, 2023 01:19
Instead of calling `SourceFile.getText()`, which creates string copies
of a substantial subset of the text of the file every time, this
directly accesses the file's underlying code units without doing any
copies.

Closes #1913
@nex3 nex3 force-pushed the selector-span-speed branch from 245c783 to fdcf6c3 Compare April 6, 2023 01:23
@nex3 nex3 merged commit 702a7ee into main Apr 6, 2023
@nex3 nex3 deleted the selector-span-speed branch April 6, 2023 21:44
jgerigmeyer added a commit to oddbird/dart-sass that referenced this pull request Apr 10, 2023
* main:
  Deprecate duplicate !global and !default declarations (sass#1931)
  Fix the performance of selector span expansion (sass#1929)
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.

Sass compiles VERY slowly since v1.59 (8 times slower than v1.58)
2 participants