Sass watch on large project very slow to detect file changes. #1966

Closed
abose opened this Issue Jan 13, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@abose

abose commented Jan 13, 2016

Hi,
I am part of the brackets open source project(brackets.io), and we were experimenting ruby SASS compilation support for brackets.
We have a project with 9000+ files being watched and around 20 SASS files in it. However, if we make a change only to one sass file among the 20, sass watcher takes around 20 seconds to detect that the file has changed and then trigger a recompile. However if i narrow the watch to just the folder with the 20 sass files, the change detection is instant.
Why is the compilation slowed down in the first case even though there are only 20 SASS files? Is there any way / flags that i should set to speed it up? [Our use case(live preview) reqires a fast change detection and recompile of the changed sass file.]

Platform: windows 8.1 64bit processor:corei7; ram:24GB; SSD

Thanks in advance,
Arun,
Brackets.io

@chriseppstein

This comment has been minimized.

Show comment
Hide comment
@chriseppstein

chriseppstein Jan 14, 2016

Member

Hi Arun, do you have the wdm ruby gem installed?

Member

chriseppstein commented Jan 14, 2016

Hi Arun, do you have the wdm ruby gem installed?

@chriseppstein

This comment has been minimized.

Show comment
Hide comment
@chriseppstein

chriseppstein Jan 14, 2016

Member

It would be great if you could do some profiling on your project and let us know where you're seeing the bottlenecks.

Member

chriseppstein commented Jan 14, 2016

It would be great if you could do some profiling on your project and let us know where you're seeing the bottlenecks.

@chriseppstein

This comment has been minimized.

Show comment
Hide comment
@chriseppstein

chriseppstein Mar 2, 2016

Member

I found the bug and fixed it.

Member

chriseppstein commented Mar 2, 2016

I found the bug and fixed it.

@abose

This comment has been minimized.

Show comment
Hide comment
@abose

abose Mar 3, 2016

Thanks!

abose commented Mar 3, 2016

Thanks!

@chriseppstein chriseppstein changed the title from SASS watch on large project very slow to detect file changes. to Sass watch on large project very slow to detect file changes. Mar 7, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment