This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I noticed that saving my .scss files suddenly got a lot slower. I managed to track down most of the difference to some styles I added, in particular the gradient styles. With the gradient styles included, saving the attached file takes about 12.5 seconds on my machine. With those few lines deleted or commented out, it takes about 2.5 seconds. I've simplified my setup down to just the single .scss file, there are no others in the entire solution. I also updated to the latest version of Web Workbench just last night, and got the latest Web Essentials just to be sure. None of that seems to have affected the save speed. Please take a look and see if you can replicate this behavior. I've marked the blocks that I'm talking about with comments like: /* MINDSCAPE - DELETE THIS BLOCK */ and /* END DELETE */ |
|
|
Thanks for alerting us to this. This doesn't seem to be a gradients issue -- it appears to be an issue with bracketed expressions, which manifests on gradients because they take the form |
|
|
Spoke too soon: it only affects complex bracketed expressions -- in particular the compiler seems to slow down significantly when there are a lot of colours in a bracketed expression. Bizarrely, it affects them even when they're commented out! Something very odd going on inside the compiler here -- we'll keep you informed! |
|
|
OK, well I'm glad you've got a handle on it. For now I moved all the gradients out into a plain-vanilla CSS file, so it's not a huge issue. Would the slowdown also affect colors specified with rgba() syntax, background images specified with url() syntax, and similar constructs? |
|
|
rgba() syntax appears to be considerably faster than #-syntax when I test it. Background images specified with url() syntax don't seem to be affected. So it may just be #-syntax colours that are hitting the slow spot. |
|
|
Just to update you on this, it doesn't look like there is a quick fix for this. The hotspot is a specific regular expression which performs very badly on .NET; the regex is 470 characters long so it's not something we can easily reverse engineer and make a special case for. Since you have a workaround for the case at hand we're proposing to defer this for now, but if you run into situations where it's not easy to work around, let us know and we'll see if we can improve matters. |
|
|
Ivan, thanks for the update. That is quite the regex! I found another workaround, which is basically using string operations to hide the parens from the parser. eg,
Looks awkward, but it seems to work. |
|