Is normal to some functions to lag randomnly?
Been playin around with the profiler, and seen some weird results about the mins/max.
For example, set_task PHP Code:
PHP Code:
PHP Code:
PD: What I mean is, those functions should take close to nothing of time, but you can see from the "max value" that sometimes it takes a long time to execute |
Re: Is normal to some functions to lag randomnly?
those functions should take close to nothing of time
And how you know ? Did you see the source code ? And you have a lot of calls in your exemple too. |
Re: Is normal to some functions to lag randomnly?
Quote:
|
Re: Is normal to some functions to lag randomnly?
0.01 seconds ? You do 71562 calls with a total time of 0.026303 seconds. So for one call, 0.026303/71562 = ? second. I let you to find the answer. So you find it's slow... interesting.
|
Re: Is normal to some functions to lag randomnly?
Quote:
I'm talking about the max (AFAIK the max is the execution which took the most time). |
Re: Is normal to some functions to lag randomnly?
What I'm calculating is the time for one call. To calculate the average I would need to have the 71562 times, adding them, then dividing by this one.
I don't know about the max, i remember reading it's something we should not care. In this situation, I would like to know how it can be useful. |
Re: Is normal to some functions to lag randomnly?
The max value occurs when the server is processing something hard like entity visibility check or trace hull.
The chance of a function to take so long is so small that you can ignore it as Arkshine said. Think that if you divide 0.733546 with 0.030394 you obtain something like 24. So in 104069 calls a maximum of 24 are delayed so the number is too small if we compare them. 24/104069 = 2.31 * 10^(-4) this is the chance of a call to take so long. So it is too small. Edit: So yes it is normal for functions to lag randomly because the server has other stuff to process besides your plugin. |
Re: Is normal to some functions to lag randomnly?
Ok thanks
|
| All times are GMT -4. The time now is 07:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.