thorhunter
You can change this now in User CP.
- Reaction score
- 32
I recently had issue with trigger which wouldn't finish, it just stopped somewhere in the middle.
Perhaps the reason were 4 loops inside each other which caused the trigger to stop running. The loop integers vary, so I could say the number of 'if' statements (only arithmetic and string comparitions) would be like this:
12*(25-30)*(5-16)*(1-52), tho the 5-16 border is 5 most of the time, loop reached 52 border half of the time and 25 was constant, so:
12*(25)*(~5-6)*(~42) is ~75600 checks.
I noticed my trigger stops when first loop reaches 12 and second loop reaches 10, so
75600 - 1920 = ~73500 checks
I managed to reduce fourth loop average to about 26, so the number of checks is about 37000 and the trigger finishes all actions properly, tho I'm afraid I will need to increase that number someday.
Does anyone know details about what causes the trigger to stop working at some point?
Perhaps the reason were 4 loops inside each other which caused the trigger to stop running. The loop integers vary, so I could say the number of 'if' statements (only arithmetic and string comparitions) would be like this:
12*(25-30)*(5-16)*(1-52), tho the 5-16 border is 5 most of the time, loop reached 52 border half of the time and 25 was constant, so:
12*(25)*(~5-6)*(~42) is ~75600 checks.
I noticed my trigger stops when first loop reaches 12 and second loop reaches 10, so
75600 - 1920 = ~73500 checks
I managed to reduce fourth loop average to about 26, so the number of checks is about 37000 and the trigger finishes all actions properly, tho I'm afraid I will need to increase that number someday.
Does anyone know details about what causes the trigger to stop working at some point?