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

Performance improvements #2339

Merged
merged 7 commits into from
Feb 25, 2017
Merged

Conversation

mgreter
Copy link
Contributor

@mgreter mgreter commented Feb 20, 2017

Used https://github.com/pcorey/JuliaSass/blob/master/julia.scss to profile.
Improves the above runtime by a factor of two or more.

Of the rest ~25% are heap (de-)allocs, ~10% searching in maps, ~5% casts, ~3% ref count overhead.

We can directly parse them into Value Nodes!
Use result from find whenever possible.
Avoids the need to fetch key bucket twice.
By testing the most common cases first we can avoid the
pretty expensive overhead for the more complex cases. This
adds a bit of code overhead trading for better performance.
@mgreter mgreter merged commit e33894e into sass:master Feb 25, 2017
@xzyfer xzyfer modified the milestone: 3.5.0.beta.4 Feb 26, 2017
@mgreter mgreter self-assigned this Mar 30, 2017
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.

2 participants