Packed strings - speed?
#1

I finally read about about packed strings in pawn(-o), so i'm going to ask for some tips about speed, like is it's faster, slower, or it may change by lenght or total needed (Packed strings are strings, that splits "default" bytes by 1 byte for each charater, actually making it an char, and i guess before 64 bit widespread it was an short in C too?
So anyone could maybe make a normal speed tester, i'm not good at thinking how to test these.

Syntax for your usage is:
Defining:
pawn Код:
new string[size char];
Filling:
pawn Код:
string=!"text here";
Using example:
pawn Код:
print(string);
By using indexes like default, you'll get 4 chars instantly:
pawn Код:
print(string[0]); // By filled data it would give "text"
Info from impossibly long pawn description - pawn language guide
Reply


Messages In This Thread
Packed strings - speed? - by RSX - 30.08.2010, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)