which is faster
#10

Quote:
Originally Posted by SyS
Посмотреть сообщение
by minute value.I will explain why ++var is faster than var++.
var++ is postincrement operator which will take the copy of the var and then increment it and assigns.
++var is preincrement operator which will take the memory address (call by reference) and increments the value and does not require a temporary copy.
I was not aware that postincrementing was possible in pawn. Thanks for letting me know, I'll run some tests on this.
Reply


Messages In This Thread
which is faster - by TYDS - 13.05.2017, 14:38
Re: which is faster - by Tord - 13.05.2017, 15:04
Re: which is faster - by iLearner - 13.05.2017, 15:09
Re: which is faster - by Inceptio - 13.05.2017, 15:29
Re: which is faster - by Vince - 13.05.2017, 15:30
Respuesta: which is faster - by Ignaciodmr - 13.05.2017, 15:57
Re: which is faster - by SyS - 13.05.2017, 16:28
Re: which is faster - by Tord - 13.05.2017, 16:30
Re: which is faster - by SyS - 13.05.2017, 16:38
Re: which is faster - by Tord - 13.05.2017, 16:40

Forum Jump:


Users browsing this thread: 3 Guest(s)