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

Very slow compilation of SCSS scripts #48

Open
pawelpabich opened this issue Mar 4, 2012 · 5 comments
Open

Very slow compilation of SCSS scripts #48

pawelpabich opened this issue Mar 4, 2012 · 5 comments

Comments

@pawelpabich
Copy link

Hi,

I have a bundle transform written using SassaAndCoffee. Initially it worked great but now it takes 42s to process 500 lines of SCSS code. I did a bit of profiling and it looks like most of the time is spent in Ruby code so I don't know if there is anything that can be done about it.
Results:
Run1 :42s
Run2: 23s
Run3: 22s

I'm more than happy to help but need some hints to get started.
Test app can be downloaded from here: http://dl.dropbox.com/u/7579883/SassPerfTest.zip

Thanks

Pawel

@pawelpabich
Copy link
Author

I just complied the scripts with ruby gem "scss" and it finished under 3s. Is IronRuby simply slow?

@kogir
Copy link
Contributor

kogir commented Mar 5, 2012

Thanks for providing the sample project.

IronRuby is slower than Ruby for sure, but perhaps there's something that can be done to improve SassAndCoffee's use of it. Is it ok for me to include your Sass files as part of a benchmark/test-suite in the SassAndCoffee project?

@pawelpabich
Copy link
Author

Yes

@tocklime
Copy link

tocklime commented Oct 9, 2012

Has anything been done about this? I'm having to dump sassandcoffee in favour of something else because it's taking several minutes for asp.net's first page load. (It's much quicker if I use a precompiled css file).

@abmobilesoftware
Copy link

Same problem here - sass files compilation is terribly slow server side with IronRuby - and now IronRoby get's stuck in some weird loop making SassAndCoffe a non option :(

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

No branches or pull requests

4 participants