Quick question regarding string sizes
#1

What is the difference between having a variable that is to large like
pawn Код:
new string[1000];
//using the string here like to display "Hello" (wich is only 5 digits long)
you guys get what i mean.. so my question is like does this impact the performence or anything or ...?

thanks
Reply
#2

more size in string == more size in file == LAG.

Here is ****** 's topic

Click Me
Reply
#3

Quote:
Originally Posted by Voxel
Посмотреть сообщение
What is the difference between having a variable that is to large like
pawn Код:
new string[1000];
//using the string here like to display "Hello" (wich is only 5 digits long)
you guys get what i mean.. so my question is like does this impact the performence or anything or ...?

thanks
Why would you use 1k large string when your 'Hello' string takes just 5 cells + NULL terminator. Using 1k large string for something that takes just 6 cells is just retarded.
Reply
#4

Quote:
Originally Posted by Djole1337
Посмотреть сообщение
Why would you use 1k large string when your 'Hello' string takes just 5 cells + NULL terminator. Using 1k large string for something that takes just 6 cells is just retarded.
It was just as a example
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)