[Tutorial] Stop the abuse of stock!
#52

Quote:
Originally Posted by KevinExec
View Post
You are an idiot. Stock tells the compiler that the function may also not be used and compiler takes more time to compile the script.
Negative, 1,326 stock functions compiles in 0.2 seconds on my PC. The difference is vastly MINOR, most people hardly have 300 functions in their gamemodes. Not to mention that 1,066 stock functions (random number, tested however) compiles in 0.1 seconds on my end.



http://pastebin.com/KB8zrs35

Quote:
Originally Posted by Private200
View Post
No?



Yes, it does. Just check main thread and it explains you why.



You are going to have a fresh script with less functions, faster gamemode loading.
Also negative, it's useless to point out things without prior testing. It definitely WON'T be faster, stock functions are left out of the .amx file (the file which the server uses on execution), as if they didn't exist in the source code (.pwn file).

To the date, there is no proof that using "stock" has any impact on the server's performance whatsoever, so why bother giving false claims out? Show your evidence instead.

With or without using "stock", your server WILL perform the same, and even if you have a "cluttered" gamemode (source code). However, whether having a cluttered gamemode or not depends on the programmer. I use the keyword "stock" when creating functions and in dispute of that, I do not leave unused functions laying around.

So, yeah... I do agree that when creating a function (in gamemodes and filterscripts) the keyword "stock" is not a requirement, though. BUT, when there are no differences between using it or not (as long as the user knows the keyword's purpose/use), then people should be able to use "stock" without being told otherwise.

I would also like to say something about this:
Quote:
Originally Posted by Pottus
View Post
Why even do that? Just put #define Function at the top of your script then.

Ex.
Function Test();
A lot of people prefer to use "stock" instead of a define due to terms of ease and laziness (for people that uses "stock" when writing functions). I don't want to be bringing/passing that define all around the place.

And dispute the fact that there is no difference in using stock or that define, so why should people do that anyway?
Reply


Messages In This Thread
Stop the abuse of stock! - by Vince - 12.04.2015, 09:26
Re: Stop the abuse of stock! - by Glossy42O - 12.04.2015, 10:12
Re: Stop the abuse of stock! - by FernandoLight - 12.04.2015, 10:14
Re: Stop the abuse of stock! - by Emmet_ - 12.04.2015, 12:04
AW: Stop the abuse of stock! - by Mellnik - 12.04.2015, 12:05
Re: Stop the abuse of stock! - by Patrick - 12.04.2015, 16:12
Re: Stop the abuse of stock! - by Abagail - 12.04.2015, 18:06
Re: Stop the abuse of stock! - by iZN - 12.04.2015, 21:17
Re: Stop the abuse of stock! - by Michael@Belgium - 12.04.2015, 21:25
Re: Stop the abuse of stock! - by Vince - 12.04.2015, 21:30
Re: Stop the abuse of stock! - by iZN - 12.04.2015, 21:31
Re: Stop the abuse of stock! - by Michael@Belgium - 12.04.2015, 21:37
Re: Stop the abuse of stock! - by yugecin - 12.04.2015, 22:14
Re: Stop the abuse of stock! - by EiresJason - 12.04.2015, 23:42
Re: Stop the abuse of stock! - by Onfroi - 13.04.2015, 00:00
Re: Stop the abuse of stock! - by Gammix - 13.04.2015, 01:18
Re: Stop the abuse of stock! - by Abagail - 13.04.2015, 01:48
Re: Stop the abuse of stock! - by EiresJason - 13.04.2015, 01:59
Re: Stop the abuse of stock! - by Pottus - 13.04.2015, 02:11
Re: Stop the abuse of stock! - by Abagail - 13.04.2015, 02:21
Re: Stop the abuse of stock! - by arakuta - 13.04.2015, 02:24
Re: Stop the abuse of stock! - by Pottus - 13.04.2015, 02:26
Re: Stop the abuse of stock! - by iZN - 13.04.2015, 07:01
Re : Stop the abuse of stock! - by S4t3K - 13.04.2015, 15:31
AW: Stop the abuse of stock! - by Kaliber - 14.04.2015, 00:48
Re: AW: Stop the abuse of stock! - by Ahmad45123 - 17.04.2015, 23:32
Re: Re : Stop the abuse of stock! - by Bakr - 18.04.2015, 06:25
Re : Stop the abuse of stock! - by S4t3K - 18.04.2015, 18:18
AW: Re : Stop the abuse of stock! - by Kaliber - 25.04.2015, 12:51
Re: Stop the abuse of stock! - by vannesenn - 01.05.2015, 22:16
Re: Stop the abuse of stock! - by ThePhenix - 02.05.2015, 00:16
Re: Stop the abuse of stock! - by Jay_ - 03.05.2015, 14:07
Re: Stop the abuse of stock! - by Jonny5 - 18.05.2015, 00:50
Re: Stop the abuse of stock! - by Freezo - 03.09.2015, 19:25
Re: Stop the abuse of stock! - by Onfroi - 06.09.2015, 17:49
Re: Stop the abuse of stock! - by Variable™ - 06.09.2015, 17:54
Re: Stop the abuse of stock! - by SickAttack - 06.09.2015, 17:55
Re: Stop the abuse of stock! - by Tamer - 06.09.2015, 18:07
Re: Stop the abuse of stock! - by Darrenr - 15.09.2015, 11:15
Re: Stop the abuse of stock! - by DarkLored - 15.09.2015, 18:54
Re: Stop the abuse of stock! - by introzen - 04.04.2016, 16:29
Re: Stop the abuse of stock! - by Puppy - 05.04.2016, 00:11
Re: Stop the abuse of stock! - by Arastair - 05.04.2016, 03:11
Re: Stop the abuse of stock! - by Itzhak E. - 07.04.2016, 12:47
Re: Stop the abuse of stock! - by Sew_Sumi - 07.04.2016, 13:00
Re: Stop the abuse of stock! - by Sasino97 - 17.04.2016, 20:28
Re: Stop the abuse of stock! - by iKevin - 07.06.2016, 12:15
Re: Stop the abuse of stock! - by vannesenn - 07.06.2016, 16:36
Re: Stop the abuse of stock! - by LockedLucas - 07.06.2016, 18:26
Re: Stop the abuse of stock! - by TwinkiDaBoss - 07.06.2016, 19:04
Re: Stop the abuse of stock! - by Private200 - 07.06.2016, 19:16
Re: Stop the abuse of stock! - by SickAttack - 10.06.2016, 16:44
Re: Stop the abuse of stock! - by vannesenn - 10.06.2016, 18:47
Re: Stop the abuse of stock! - by Konstantinos - 10.06.2016, 18:56
Re: Stop the abuse of stock! - by Stinged - 11.06.2016, 10:12
Re: Stop the abuse of stock! - by SickAttack - 11.06.2016, 13:59
Re: Stop the abuse of stock! - by PeanutButter - 11.02.2017, 10:36
Re: Stop the abuse of stock! - by HydraHumza - 11.02.2017, 10:54
Re: Stop the abuse of stock! - by iLearner - 11.02.2017, 11:36
Re: Stop the abuse of stock! - by ATomas - 22.02.2017, 12:59
Re: Stop the abuse of stock! - by organe. - 22.02.2017, 13:13
Re: Stop the abuse of stock! - by BiosMarcel - 22.02.2017, 21:49
Re: Stop the abuse of stock! - by iKarim - 23.02.2017, 05:08
Re: Stop the abuse of stock! - by Kwarde - 16.10.2019, 20:49
Re: Stop the abuse of stock! - by [FMJ]PowerSurge - 04.05.2020, 02:57

Forum Jump:


Users browsing this thread: 7 Guest(s)