Server Lag
#10

Quote:
Originally Posted by Yousha
Посмотреть сообщение
You must be new in programming... Welcome
no but i might do mistakes (often, lol)
But if u say something like that, at least correct me, otherwise its just stupid :P

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
PAWN.CMD is horribly slow if you use the callbacks.

Possible answers: Your script isn't performance friendly. Your host isn't that reliable. Players' internet connection isn't good or their ping is terrible.
Good to know, thanks


By the way here i try to prove a part of what i said earlier (which i might fail at, lol):



Quote:

appending to big logfiles shouldn't really influence performance

Appending to Logfiles (1KB logfile vs 95000 KB logfile), appending the word "Test" a thousand times.

i made it a couple of times:

PHP код:
Benchmarking
Small file
3454 ms
Large file
3719 ms
Benchmarking is done

PHP код:
Benchmarking
Small file
4336 ms
Large file
4430 ms
Benchmarking is done

PHP код:
Benchmarking
Small file
5203 ms
Large file
4854 ms
Benchmarking is done

PHP код:
Benchmarking
Small file
4883 ms
Large file
4994 ms
Benchmarking is done

PHP код:
Benchmarking
Small file
5030 ms
Large file
4990 ms
Benchmarking is done

Quote:

Unused define don't do shit

Well, here is some assembly code for ya:

With unused defines:

PHP код:
CODE 0    0
;program exit point
    halt 0
    proc    
main
    
line 6
    zero
.pri
    retn
STKSIZE 1000 
Without unused defines:

PHP код:
CODE 0    0
;program exit point
    halt 0
    proc    
main
    
line 4
    zero
.pri
    retn
STKSIZE 1000 
Well, i have to say no more, right?


Too lazy tot try and prove the rest, anyways removing default buildings is totally unneccessary i think, rather optimize the rest

About pawn cmd, since i have already been told the usage of the callbacks make it slow , actually i like those callbacks, sad to hear that, sorry for providing wrong information
Reply


Messages In This Thread
Server Lag - by Alpay0098 - 12.11.2015, 09:40
Re: Server Lag - by Yousha - 12.11.2015, 15:15
Re: Server Lag - by Sublime - 13.11.2015, 00:33
Re: Server Lag - by HydraHumza - 13.11.2015, 09:05
Re: Server Lag - by Alpay0098 - 13.11.2015, 10:43
Re: Server Lag - by Yousha - 13.11.2015, 11:59
Re: Server Lag - by BiosMarcel - 31.12.2016, 00:26
Re: Server Lag - by SickAttack - 31.12.2016, 00:58
Re: Server Lag - by Yousha - 31.12.2016, 06:33
Re: Server Lag - by BiosMarcel - 31.12.2016, 10:03

Forum Jump:


Users browsing this thread: 1 Guest(s)