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

Improve performance #1535

Merged
merged 6 commits into from
Oct 21, 2021
Merged

Improve performance #1535

merged 6 commits into from
Oct 21, 2021

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Oct 16, 2021

Closes #1534

lib/src/value/string.dart Show resolved Hide resolved
perf.md Show resolved Hide resolved
Neither of these support Node v16 yet, but Susy is unmaintained and
will never support it while Carbon will likely add support in the near
future.
These values are often stored in maps, so caching their hash codes
seems to be net valuable.
This dramatically improves the performance of a sample app using the
Carbon design system, and should generally improve apps that have a
lot of repeated @imports of library files. It's possible we can back
this out if it's not pulling its weight once we no longer support
@import.
Instead, we create a single zone-scoped object that's visible for the
entire lifespan of the visitor, and which exposes evaluation internals
which can be updated as direct field modifications.
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.

16x performance difference between sass and node-sass
2 participants