typed dataset and untyped dataset, which one is faster?

G

Guest

typed dataset and untyped dataset, which one is faster?
I think the answer is typed, but some one told me is untyped.
Who can tell me the answer and the reason?

thanks
 
O

OHM \( One Handed Man \)

There would be some marginal difference, but you are unlikely to notice it.
Using strongly typed DataSets make your coding cleaner, safer and more
readable
 
C

Cor Ligthert [MVP]

Napo,

In the use of the Strongly Typed Dataset is a use that is seldom done with
the typed dataset.

That is referencing the columns by the column property instead of string and
index.

That makes de Strongly Typed Dataset by testing mostly slightly faster. As
OHM says is the gain of time so few, that any thinking about this cost more.

Just my idea

Cor
 
W

W.G. Ryan - MVP

It depends. There's a lot of debate about this. Strongly typed datasets have
a lot of advantages with respect to typing, but as such, have a lot of
try/catch blocks and exception handling that can slow them down. However in
all likelihood, you're going to have to write the same stuff yourself so it
really depends. It's not an apples to apples comparison until you factor in
the exception handling.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top