I've got a question, which would be faster if I wanted to send a client its inventory which is made up of an array of integer item id's server wise:
Convert the integers into strings, and put them all into the same string seperated by commas, and then send the whole string in one packet to the client to be seperated back into individual item id's like so:
int Inventory[10] = {0,1,2,3,4,5,6,2,1};
*send each integer seperately*
or:
int Inventory[10] = {0,1,2,3,4,5,6,2,1};
*convert into strings*
string Result = "0,1,2,3,4,5,6,2,1";
*send in one packet instead of 10*
Which of these has the best performance?
Or is there a faster way?