Compass watch: possible to configure interval?

364 views
Skip to first unread message

axyl

unread,
May 17, 2012, 5:50:10 PM5/17/12
to compas...@googlegroups.com
Compass watch is great, but it seems to take up quite a bit of CPU power. We're guessing this is because it polls for changes pretty frequently. Is it possible to configure how often it does that? Are there other ways to make it not so CPU-intensive?

Ryan Frederick

unread,
May 18, 2012, 10:14:55 PM5/18/12
to compas...@googlegroups.com
If you're on a Mac, you can install the rb-fsevent gem which hooks into the OS's file system events system. Install it with `gem install rb-fsevent` and Compass will no longer have to poll. Apparently some of the GUI apps (eg. CodeKit) also use an event system rather than polling.

Unfortunately I don't know about what may be available for Windows or Linux.

axyl

unread,
May 19, 2012, 4:44:36 AM5/19/12
to compas...@googlegroups.com
I see, we have to use Windows 7 at work though. 

Ryan Frederick

unread,
May 19, 2012, 3:22:14 PM5/19/12
to compas...@googlegroups.com
I see. I thought I'd Google around to see what I could find. As a non-rubyist it's hard for me to evaluate options, but rb-fchange seems like it *might* help. I don't see existing integration with Compass though, so my guess is that you'd have to write some Ruby code to have rb-fchange run `compass compile`. It also appears to be early in development, with only specific versions of Ruby supported.

Michael Del Tito

unread,
May 21, 2012, 10:06:15 AM5/21/12
to compas...@googlegroups.com
The guard project might be what you are after:


for compass:

axyl

unread,
May 21, 2012, 4:32:24 PM5/21/12
to compas...@googlegroups.com
Looks like watch may be deprecated soon in favor of guard. CPU is not a big issue for us, so we'd just wait for the new feature to come out. Thanks for everyone's advice!
Reply all
Reply to author
Forward
0 new messages