When compiling sass, I usually have a very long compilation time (up to 9 seconds in the current medium-sized project) on my very fast laptop with ssd. I use sass through the grunt-contrib-sass search task, but the compilation time is not much different when running sass directly from the command line. Libsass , on the other hand, is only about 100 ms for the same project, but it does not support several functions that I need. So I would like to know what features I need to speed up the compilation process?
Separating files helps, of course, but are there other ways to do this with less side effects?
Edit: Also, I would also be happy to explain how libsass can be much faster than ruby. For some reason, I doubt very much that this is simply because ruby ββis much slower than C / C ++. Or am I wrong here?
Edit2: Although I use Ubuntu, the same project compiled in 2 seconds on macbook pro, which is supposed to be slower when it comes to hardware, so it might be related to Linux somehow.
ruby sass ubuntu gruntjs gulp
hugo der hungrige
source share