- Joined
- Aug 18, 2009
- Messages
- 4,097
Just wondered why http://peeeq.de/code.php?id=6908 takes >90 seconds on the first run and additional runs only 16 to 17 seconds.
It appears that simultaneous TriggerExecute calls, i.e. this covers being within subthreads or event-firing too, stack up to init a data structure. So the first execution time for 1000x TriggerExecute is higher than if you were to split it up. Afterwards, you can run up to 1000x TriggerExecute without init costs. Only if you exceed the previous limit does it require more.
I do not know if that cache is cleared at some point, while not, it would take memory and for me, 15mio calls were enough to burst the bubble and make wc3 run out of memory.
It appears that simultaneous TriggerExecute calls, i.e. this covers being within subthreads or event-firing too, stack up to init a data structure. So the first execution time for 1000x TriggerExecute is higher than if you were to split it up. Afterwards, you can run up to 1000x TriggerExecute without init costs. Only if you exceed the previous limit does it require more.
I do not know if that cache is cleared at some point, while not, it would take memory and for me, 15mio calls were enough to burst the bubble and make wc3 run out of memory.