Re:Libsass – C implementation of a Sass compiler
by gkoberger on Monday November 25, 2013 @09:01PM
(#6798580)
Seriously? I believe you, but if it's taking hours then it seems like the problem isn't as much with SASS but rather the way they write CSS or their build process. If they only recompiled changed files, there's no way it could take "hours".
Even if they recompile everything... all CSS needs to be interpreted by the browser at some point. How much CSS do they have?
That being said, what are the speed comparisons like?
Re:Libsass – C implementation of a Sass compiler
by icambron on Tuesday November 26, 2013 @02:02AM
(#6799625)
Yeah, I'd love to hear more from Hampton on the hours thing. What actually takes so long? Why does the number of developers matter? I've worked on some substantial (though not LinkedIn-sized) projects that used SASS and I've never clear seconds in compilation time.
Though I completely get the portability aspect.
Re:Libsass – C implementation of a Sass compiler
by hcatlin on Tuesday November 26, 2013 @12:09PM
(#6802584)
They use https://github.com/linkedin/archetype which is an extension on top of Compass. Including all those libraries can mean a TON of memory and processing is required. Mixins calling mixins calling mixins. Plus, custom ruby extensions, etc. The needs of organizing hundreds of developers logically and making sure the code is optimized can be a hauss.
Re:Libsass – C implementation of a Sass compiler
by icambron on Tuesday November 26, 2013 @12:51PM
(#6802853)
Thanks.
Re:Libsass – C implementation of a Sass compiler
by drdaeman on Monday November 25, 2013 @10:28PM
(#6798929)
Hours?
Either they have several gigabytes of CSS output (ouch) or they're using a ZX-Spectrum as a build machine. Or, possibly, they're constantly recompiling, like doing a change in SASS a hundred times per second.
Otherwise, interpreted script-based parser (given that it's written properly, algorithm-wise) should be sufficiently performant to produce results in a sane time.
At Moovweb, some of our customer's projects can take 30 seconds just for the Sass to compile for fairly straightforward sites.