By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,885 Members | 1,469 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,885 IT Pros & Developers. It's quick & easy.

Is DataRow[string] uses DataRow[int] and DataRow[int] much efficient than DataRow[string]?

P: n/a
Is DataRow[string] uses DataRow[int] and
DataRow[int] much efficient than DataRow[string]?

Thanks,
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

Ryan Liu
Shanghai Fengpu Software Co. Ltd
Shanghai , China

http://www.PowerCATI.com Powerful CATI!
http://www.fpsoft.net.cn
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

Jan 31 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Ryan,

Generally, the string indexer is slower than the integer indexer, as the
string indexer requires a lookup for the column to get the value from.

I believe that the indexer with the DataColumn is the fastest though.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ryan Liu" <rl**@PowerCATI.comwrote in message
news:er**************@TK2MSFTNGP03.phx.gbl...
Is DataRow[string] uses DataRow[int] and
DataRow[int] much efficient than DataRow[string]?

Thanks,
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

Ryan Liu Shanghai Fengpu Software Co. Ltd
Shanghai , China
http://www.PowerCATI.com Powerful CATI!
http://www.fpsoft.net.cn
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
Jan 31 '08 #2

P: n/a
Hi,
In my own experience DataRow[int] is the fastest. Not sure this is 100%
true though.
But unless you have a big number of columns I do not think that it will be
cause a significant change.

--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
"Ryan Liu" <rl**@PowerCATI.comwrote in message
news:er**************@TK2MSFTNGP03.phx.gbl...
Is DataRow[string] uses DataRow[int] and
DataRow[int] much efficient than DataRow[string]?

Thanks,
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

Ryan Liu Shanghai Fengpu Software Co. Ltd
Shanghai , China
http://www.PowerCATI.com Powerful CATI!
http://www.fpsoft.net.cn
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

Jan 31 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.