Solved

ODBC API speed question

Posted on 2000-03-01
3
245 Views
Last Modified: 2010-04-10
Given the same set of ODBC APIs, is there any tangible speed difference in VC++ compared to  VB?
0
Comment
Question by:Diana_pal
3 Comments
 
LVL 7

Accepted Solution

by:
KangaRoo earned 50 total points
ID: 2572179
I would expect the ODBC API and the DB activity to be the most costly. If most of what is done consists of ODBC api calls I expect little difference. If a few ODBC calls are combined with (many) algorithms with high complexities the balance might favor C++.
0
 
LVL 4

Expert Comment

by:abancroft
ID: 2581453
Assuming you are using the VB "declare" keyword to access the ODBC API, I would think that the speed difference in calling ODBC functions would be very small.

My reasoning: the ODBC API is implemented in a set of DLL's and the overhead of calling a DLL function in VB is pretty small (compared to VC). In this case, it will have to convert from BSTR to char* for some API calls, but this isn't too costly a procedure.

However, if you use the Jet engine to access the ODBC data source, you may find VB is slower. As ever, it depends on the program.

As KangaRoo pointed out, in most DB programs the DB activity is the bottleneck - not the API calls.
0
 

Author Comment

by:Diana_pal
ID: 2594865
Thanks
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question