Page 1 of 1

"Slow Down" Hazel

PostPosted: Fri Aug 15, 2014 12:15 pm
by dredhorse
Hi,

just noticed that Hazel puts around 20 % load on the CPU, causing my system to get very hot.

Is there a way to slow down processing of the rules?

I'm already trying to make the rule check as easy as possible and putting them in the correct order but I think there are perhaps other ways to improve rule processing.

Re: "Slow Down" Hazel

PostPosted: Fri Aug 15, 2014 2:54 pm
by Mr_Noodle
You can add an artificial pause using a script though I'd first look at your rules to make sure you aren't making Hazel do more than it needs to. For example, if you have Hazel go into subfolders, you might want to limit that. If you have it going into every subfolder even when it only needs to go into specific ones, or only a certain level deep, it may cause much more processing than is needed.

Re: "Slow Down" Hazel

PostPosted: Sat Aug 16, 2014 8:38 am
by dredhorse
I tried making the scripts more intelligent.

Perhaps it is normally not a real issue but I have thermal problems with my mbp.. going to get it cleaned soon... but I guess that is why it becomes really obvious that hazel is putting a lot of strain on the system (at least of mine).

Perhaps being able to choose an interval when the rules fire would be an option?

Do you have any idea which filters need more "work" than others? It would sense to put the simpler filters on top if possible.

Atm I have a lot of checking for PDF and after than an applescript.

Re: "Slow Down" Hazel

PostPosted: Mon Aug 18, 2014 12:12 pm
by Mr_Noodle
You can try using the "Current time" attribute to have the rules match on a schedule, but otherwise, not sure if it's a good thing to artificially delay stuff. Most people want stuff done quickly so it should be up to you to delay it if you want it to behave otherwise. Also, rule ordering affects how they match and are executed. While theoretically, Hazel might be able to use some logic to try and re-order them to optimize things, it would be hard to predict and in some cases, to maintain the logic and behavior, it won't be able to do anything.

Re: "Slow Down" Hazel

PostPosted: Mon Aug 18, 2014 1:40 pm
by dredhorse
I agree about the reordering... hazel shouldn't do that... the user should but in this case the user needs to know how expensive the filters are.

Concerning timing interval, perhaps it would be an idea to be able to set this on folder basis, with a hardcoded minimum.

BTW: Can you enable / disable hazel via applescript?

On top of that I have one more suggestion to improve hazel, do you have a special forum for that or should I just create a new post in Support?

Re: "Slow Down" Hazel

PostPosted: Wed Aug 20, 2014 1:58 pm
by Mr_Noodle
Not really unless you try to script user events to simulate you clicking the button. As for a new feature request, I suggest the Open discussion forum.

Re: "Slow Down" Hazel

PostPosted: Wed Aug 20, 2014 2:01 pm
by dredhorse
a pity about enabling / disabling..

will do about the suggestions

Re: "Slow Down" Hazel

PostPosted: Wed Apr 04, 2018 9:28 pm
by jhein
dredhorse wrote:BTW: Can you enable / disable hazel via applescript?


You can just quit and then start it again.

Code: Select all
tell application id "com.noodlesoft.HazelHelper"
   if it is running then
      tell it to quit
   else
      tell it to run
   end if
end tell