Improving macrodroid performance

Endercraft

Moderator (& bug finder :D)
Maybe a switch in settings to enable/disable logging by default would be useful (if you only use log for debugging).
 

md_sgf

Active member
An update on how I'm progressing with this.

- For all of my macros:
  - Have unticked "Allow logging"
  - Have cleared all local variables (& ensured I have "Clear Variables" action, so it does so automatically each it's run)

- In "System Log", I have cleared everything

- I am now in the process of disabling categories, to see if I can try to narrow down where the performances issues are from (& also the regular freezing/crashing).
I may keep most macros disabled, if that will help (as most i seldom if ever use).
Might use this method at same point.

- Concurrently, I'm trying also to remedy all errors/etc in System Log (see debugging using system log)
 
Last edited:

Jacob L

Moderator (Lawsonator)
Have you got the latest version? Perhaps post some of the macros that are throwing errors so we can optimise them.
 

md_sgf

Active member
Have you got the latest version? Perhaps post some of the macros that are throwing errors so we can optimise them.
Yes, i have the latest version.

Perhaps if i can eventually narrow down the causative macros of freezes/crashes, i could post them here, if i can't optimise them myself.
 

md_sgf

Active member
Overall, i am now wanting to make more "solid" action, rather "fluffing around", which i have done for the past year or so. As my patience tank is running very low now. I intend to PIN IT DOWN, ie FIX the issues 100% COMPLETELY. It's like computer binary, WIN vs LOSE, SUCCEED vs FAIL. Up to now, i have been LOSING, from now on i will be WINNING, even if that means taking extreme measures to win, eg keeping most of my macros disabled, so i don't overload mr macrodroid, as "it's only human"! lol

Done...
- restarted phone  (tech 101)
  (done many times; can help with certain issues, but the freezes/crashes return in a while after)
- deleted some categories
. . (backed up first, of course; i have moved these to another phone, and are keeping disabled there, for now)
- disabled all categories
. . (as expected, zero freezes/crashes & System Log errors/etc (stays blank); i ran out of patience, disabling categories 1 at a time, as fed up with these freezes/crashes!; i will re-enable 1 category every day, checking for the next day/so for ANY freezes/crashes & System Log errors/etc - if there are any, then FIX those issues then, before re-enabling next category; i probably also might then eg disable 50% of macros in the culprit category, re-check for issues, then if no issues, re-enable 25% more macros, etc, to locate the offending macro/s)

Not done...
- delete most categories
- uninstall-->reinstall macrodroid
. . (tech 111/911/..; maybe an option, if other methods fail)
- uninstall macrodroid, don't reinstall
. . (use another automation app; that would definately rid all of the freezes/crashes & System Log errors/etc! don't want to do this, as macrodroid is imho the #1 automation app overall, just need to fix the freezes/crashes, which i WILL do)
- factory reset phone
. . (tech 111/911/..; can't see that happening, unless i find a way to backup 100% of my data/settings, for 100% of apps (99% backup = binary FAIL))

Working on...
- general phone performance stuff
. . - installed Greenify; another app i could try is SuperFreezZ if that doesn't work
. . - regularly restarting phone
. . - keeping adequate storage space free (28GB free in internal space should be enough?)
. . gradually moving apps to another phone (currently still have >600 apps i have installed; maybe it's affecting macrodroid performance?)
. . - ...
 
Last edited:

md_sgf

Active member
I wish forums would "respect" my spaces (eg indents). I have to resort to using ". . ." when they don't. I mean, what's a few extra spaces here and there, for indenting/etc? 🫤
 

Jacob L

Moderator (Lawsonator)
Overall, i am now wanting to make more "solid" action, rather "fluffing around", which i have done for the past year or so. As my patience tank is running very low now. I intend to PIN IT DOWN, ie FIX the issues 100% COMPLETELY. It's like computer binary, WIN vs LOSE, SUCCEED vs FAIL. Up to now, i have been LOSING, from now on i will be WINNING, even if that means taking extreme measures to win, eg keeping most of my macros disabled, so i don't overload mr macrodroid, as "it's only human"! lol

Done...
- restarted phone . . . (tech 101)
. . (done many times; can help with certain issues, but the freezes/crashes return in a while after)
- deleted some categories
. . (backed up first, of course; i have moved these to another phone, and are keeping disabled there, for now)
- disabled all categories
. . (as expected, zero freezes/crashes & System Log errors/etc (stays blank); i ran out of patience, disabling categories 1 at a time, as fed up with these freezes/crashes!; i will re-enable 1 category every day, checking for the next day/so for ANY freezes/crashes & System Log errors/etc - if there are any, then FIX those issues then, before re-enabling next category; i probably also might then eg disable 50% of macros in the culprit category, re-check for issues, then if no issues, re-enable 25% more macros, etc, to locate the offending macro/s)

Not done...
- delete most categories
- uninstall-->reinstall macrodroid
. . (tech 111/911/..; maybe an option, if other methods fail)
- uninstall macrodroid, don't reinstall
. . (use another automation app; that would definately rid all of the freezes/crashes & System Log errors/etc! don't want to do this, as macrodroid is imho the #1 automation app overall, just need to fix the freezes/crashes, which i WILL do)
- factory reset phone
. . (tech 111/911/..; can't see that happening, unless i find a way to backup 100% of my data/settings, for 100% of apps (99% backup = binary FAIL))

Working on...
- general phone performance stuff
. . - installed Greenify; another app i could try is SuperFreezZ if that doesn't work
. . - regularly restarting phone
. . - keeping adequate storage space free (28GB free in internal space should be enough?)
. . gradually moving apps to another phone (currently still have >600 apps i have installed; maybe it's affecting macrodroid performance?)
. . - ...
Use SuperFreezZ or Hail instead. They're open source and not full of ads, tracking or spyware
 

DonDemon

Active member
Yes do remove unused macros (especially if there’s A LOT of them) because else if there are too many MacroDroid will not like it.
Nope, I have ±280 and my md is running stable. It depends on what macro is running in the background and maybe how many of them
 

Endercraft

Moderator (& bug finder :D)
Nope, I have ±280 and my md is running stable. It depends on what macro is running in the background and maybe how many of them
It depends on the macros, but when you reach 500 it can start to slow down and especially affect the automatic saving of macros (when variable changes or you make a change to a macro).
 

md_sgf

Active member
What are this spaces mean?

For example...


scenario #1
Line
Indented line
Indented line

scenario #2
Line (text)


In the above text, you can see all my indents/spaces are gone.


But below is what i have typed while editing my post, and is what i see whenever i return to editing my post.

macrodroidforum spaces.jpg
 
Last edited:

md_sgf

Active member
That kind of works. I forgot about using that method.
Code:
scenario #1
Line
     Indented line
     Indented line

scenario #2
Line          (text)

But due to the different font, it's not exactly as i want to display the text. And most likely any formatting would be removed, such as color, bold, etc :(

Maybe the only real way would be to post as an image? (true WYSIWYG)

Can only use forum bbcode, not html formatting, which i think could maintain spaces, as Display Dialog has it.
 
Last edited:

DonDemon

Active member
scenario #1
Line
Indented line
Indented line

scenario #2
Line (text)
oh, I noticed that recently, too. But what about using custom symbols like "឵឵឵"?
word (conditional) {
឵឵ ឵ action
}

····test
· · · · test
__test
 
Last edited:

md_sgf

Active member
oh, I noticed that recently, too. But what about using custom symbols like "឵឵឵"?
For years i have wanted to find a custom ascii symbol, that looked identical to a space (ie blank). I hunted for such a symbol, but couldn't find. I recall scrolling through the entire unicode character set in Character Map program on Windows.

Maybe i need to have another search, but this time search smart, not hard...
 

DonDemon

Active member
Maybe i need to have another search, but this time search smart, not hard...
X឵D You can find smth like this on sites. I found one site where there is even a huge description just for empty symbol and it history. Honestly, I didn't remember, where I get my, but it was around 2-3 years ago, when after finding it, I added it to keyboard (custom symbols can be added to Samsung keyboard).

So, now it is very useful since messagers replace :឵o, :឵) with emojis and trying to detect links, words and etc
 
Top