G
Guest
Consider the following:
I have a socket server that converts the incoming data to astring. Each reception of data is to be stored in a new row ofa dataset.
Is it cheaper (in the sense of system resources) to storeeverything into a single string, pass the string back to mymain(), perform string manipulation, and add the data to thedataset accordingly. -OR- pass the dataset obj to my TCPServer,add rows of data to the dataset as data comes in, and then passthe modified dataset back to main. The concactanated stringsfrom the first method would never exceed much more than a couplehundred characters. The dataset would be dynamic and couldreach upwards of 10K characters (plus all the overhead in adataset).
User submitted from AEWNET (http://www.aewnet.com/)
I have a socket server that converts the incoming data to astring. Each reception of data is to be stored in a new row ofa dataset.
Is it cheaper (in the sense of system resources) to storeeverything into a single string, pass the string back to mymain(), perform string manipulation, and add the data to thedataset accordingly. -OR- pass the dataset obj to my TCPServer,add rows of data to the dataset as data comes in, and then passthe modified dataset back to main. The concactanated stringsfrom the first method would never exceed much more than a couplehundred characters. The dataset would be dynamic and couldreach upwards of 10K characters (plus all the overhead in adataset).
User submitted from AEWNET (http://www.aewnet.com/)