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


Forum Jump:


Users browsing this thread: 1 Guest(s)