-
Notifications
You must be signed in to change notification settings - Fork 356
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
Bad performance sass compared to sassc #1161
Comments
What method did you use to install Dart Sass? If you're using NPM, you're getting the compiled-to-JS version, which has an unavoidable performance hit, but if you've installed it through some other method (the standalone release on GitHub, Homebrew, Pub, etc), this is something we could take a look at. |
It's worth noting that 2s versus 200ms is a much larger performance hit than we'd expect, but much of that may be caused by details like how you're running Sass. As @jathak says, to provide you with more help we need a lot more information about how you installed Sass, how you're running it, and what your CSS looks like. |
I've downloaded the release dart-sass-1.32.0-linux-x64.tar.gz #1: time sass --update ../test.scss -I /var/www/cp/xsites_versions/connector_js_mati > res.css The timings of sass are: "user" avg 450-500ms So about x2 performance hit. |
Again, without knowing what your stylesheet looks like, we can't provide much information about why it's taking so much time to compile. |
Hi there. I'm maintaining catppuccin/gtk, and we have experienced this among other problems when trialling a migration to dart-sass (documented @ catppuccin/gtk#224 (comment)). Happy to open a new issue if you wish to track a fix there. Just popping in so you can investigate a real-work complete repo that experiences this issue, as indicated by the request for more info on the topic. |
@nullishamy I don't have a nix setup. Can you provide me with a standalone set of Sass inputs that I can test against? |
Hello,
Since the deprecation of libsass I'm looking into transitioning to dart sass. For that I'm looking into performance issues.
I've encountered a case where sassc takes 200ms compared to libsass taking 2s. Is that interesting for you? should I post the files? (there are many files in this use case)
King regards,
Mati
The text was updated successfully, but these errors were encountered: