469,347 Members | 19,021 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,347 developers. It's quick & easy.

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

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
2 1862
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
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.

Similar topics

4 posts views Thread by Hein Albrecht | last post: by
6 posts views Thread by JIM.H. | last post: by
3 posts views Thread by michael_geller | last post: by
5 posts views Thread by Rainer Queck | last post: by
4 posts views Thread by parez | last post: by
9 posts views Thread by myotheraccount | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.