This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Description
Please consider using a amalgamation of the libsass source for this repository.
One of my main complaints about this library is that it is excessively slow to compile. This isn't helped by the fact that I end up rebuilding it in CI occasionally, even despite providing a gem cache.
$ time gem install sassc
Building native extensions. This could take a while...
Successfully installed sassc-2.0.1
Parsing documentation for sassc-2.0.1
Done installing documentation for sassc after 0 seconds
1 gem installed
real 1m6.135s
user 1m1.721s
sys 0m2.371s
In order to remedy this, I experimented with amalgamation of the libsass source files, and found that this provided a huge improvement in compile times.
$ time gem install sassc-2.0.1.custom.gem
Building native extensions. This could take a while...
Successfully installed sassc-2.0.1.custom
Parsing documentation for sassc-2.0.1.custom
Done installing documentation for sassc after 1 seconds
1 gem installed
real 0m12.271s
user 0m11.410s
sys 0m0.457s
I created the amalgamation in that repository using this shell script, however other repositories generally have custom tools that do this for them.