vc is faster, no?

  • Thread starter Thread starter Ari
  • Start date Start date
A

Ari

Hello all,

I have developed my companies product using visual basic.net. I've got
it designed how I like it. I'm ready for the speed. However, because
my main lags in the program are the network connections I would like to
ask if httpwebrequest are faster in vc++?

Could I rewrite my networking class in vc++ and see better performance
and leave the gui in visual basic?

Thank you for your time. I look forward to hearing what everyone has to
say.
 
Ari said:
Hello all,

I have developed my companies product using visual basic.net. I've got
it designed how I like it. I'm ready for the speed. However, because
my main lags in the program are the network connections I would like
to ask if httpwebrequest are faster in vc++?

Could I rewrite my networking class in vc++ and see better performance
and leave the gui in visual basic?

Thank you for your time. I look forward to hearing what everyone has
to say.

If your program is compute bound, you may be able to speed it up by writing
parts in C++. If your app is not computer bound (and you seem to be
indicating that it's not), then you'll likely see no difference in
performance at all by switching languages.

-cd
 
I have developed my companies product using visual basic.net. I've got
it designed how I like it. I'm ready for the speed. However, because
my main lags in the program are the network connections I would like to
ask if httpwebrequest are faster in vc++?

Could I rewrite my networking class in vc++ and see better performance
and leave the gui in visual basic?

It is a common approach to program GUI and non-critical things in C# or
VB.NET, and write the logic in native C++.

However, If your performance if network bound, then a rewrite will give you
no improvement.
OTOH, if the performance is bound by computing intense tasks, or moving
large blocks of memory around, then native C++ might give you a substantial
gain.

You'd have to go native anyway because C++/CLI (C++ compiled for .NET) is
just as performant as C# (and probably VB.NET) with optimizations enabled.

But if you think it might be worth your while, there is only one thing to
do, and that is the advice we give everyone who asks this question: Create a
test program and do a benchmark.
Software performance depends on so many things that that is the only way to
be sure.

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 
Back
Top