My boss's boss has heard a rumour that C# is faster than VB.NET and is now
concerned because we are writing stuff with VB.NET. My first reaction is
that this is absurd. They both compile to the same IL, right?
Now I've done a little C#, but on the whole I suffer from curlybraceaphobia,
so I'm looking for amunition to defeat his claim. Can anyone point me to an
article or anything official looking that states that neither language is
faster than the other? 20 1345
C# is a bit faster....
but that's not much
"Adam J. Schaff" <as*****@cascocdev.com> schrieb im Newsbeitrag
news:e1**************@TK2MSFTNGP10.phx.gbl... My boss's boss has heard a rumour that C# is faster than VB.NET and is now concerned because we are writing stuff with VB.NET. My first reaction is that this is absurd. They both compile to the same IL, right?
Now I've done a little C#, but on the whole I suffer from
curlybraceaphobia, so I'm looking for amunition to defeat his claim. Can anyone point me to
an article or anything official looking that states that neither language is faster than the other?
Both languages compile against the same CLR.. We work with C# and VB.NET, we
have seen no difference so far..
VJ
"Adam J. Schaff" <as*****@cascocdev.com> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl... My boss's boss has heard a rumour that C# is faster than VB.NET and is now concerned because we are writing stuff with VB.NET. My first reaction is that this is absurd. They both compile to the same IL, right?
Now I've done a little C#, but on the whole I suffer from
curlybraceaphobia, so I'm looking for amunition to defeat his claim. Can anyone point me to
an article or anything official looking that states that neither language is faster than the other?
> but on the whole I suffer from curlybraceaphobia,
lol. Sounds like your boss suffers from "non-curlybraceaphobia" ;) They both compile to the same IL, right
Yes, but the VB compiler might generate different IL than the C# compiler in
different situations. This results in C# being slightly faster under some
conditions and VB being slightly faster in others.
This is an old an tired argument IMHO. Any performance differences between
the managed languages will unlikley have any affect on a real world
application. The single most important factor in writing an application that
performs well is a good design written by someone who understands not only
what has to be done, but also understands where performance bottlenecks are
likley to reside. Your boss doesn't seem like this kind of person in my
opinion.
I can't think of any articles off hand, but I'm sure you'll find all sorts
of biased articles (and performance samples out there) that have no
real-world. If your application performs badly when written in VB, porting
it to C# will not make it faster.
Just my 2p,
Trev.
"Adam J. Schaff" <as*****@cascocdev.com> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl... My boss's boss has heard a rumour that C# is faster than VB.NET and is now concerned because we are writing stuff with VB.NET. My first reaction is that this is absurd. They both compile to the same IL, right?
Now I've done a little C#, but on the whole I suffer from
curlybraceaphobia, so I'm looking for amunition to defeat his claim. Can anyone point me to
an article or anything official looking that states that neither language is faster than the other?
> C# is a bit faster....
can you give a quick example of this?
"Sven Rutten" <sv*********@freesurf.ch> wrote in message
news:u7****************@TK2MSFTNGP11.phx.gbl... C# is a bit faster....
but that's not much
"Adam J. Schaff" <as*****@cascocdev.com> schrieb im Newsbeitrag news:e1**************@TK2MSFTNGP10.phx.gbl... My boss's boss has heard a rumour that C# is faster than VB.NET and is
now concerned because we are writing stuff with VB.NET. My first reaction is that this is absurd. They both compile to the same IL, right?
Now I've done a little C#, but on the whole I suffer from curlybraceaphobia, so I'm looking for amunition to defeat his claim. Can anyone point me to an article or anything official looking that states that neither language
is faster than the other?
> I can't think of any articles off hand, but I'm sure you'll find all sorts of biased articles (and performance samples out there) that have no real-world.
bolt the word "relevance" on to the end of that sentence ;)
"Trev Hunter" <hu*********@hotmail.com> wrote in message
news:O3**************@TK2MSFTNGP11.phx.gbl... but on the whole I suffer from curlybraceaphobia,
lol. Sounds like your boss suffers from "non-curlybraceaphobia" ;)
They both compile to the same IL, right
Yes, but the VB compiler might generate different IL than the C# compiler
in different situations. This results in C# being slightly faster under some conditions and VB being slightly faster in others.
This is an old an tired argument IMHO. Any performance differences between the managed languages will unlikley have any affect on a real world application. The single most important factor in writing an application
that performs well is a good design written by someone who understands not only what has to be done, but also understands where performance bottlenecks
are likley to reside. Your boss doesn't seem like this kind of person in my opinion.
I can't think of any articles off hand, but I'm sure you'll find all sorts of biased articles (and performance samples out there) that have no real-world. If your application performs badly when written in VB, porting it to C# will not make it faster.
Just my 2p,
Trev.
"Adam J. Schaff" <as*****@cascocdev.com> wrote in message news:e1**************@TK2MSFTNGP10.phx.gbl... My boss's boss has heard a rumour that C# is faster than VB.NET and is
now concerned because we are writing stuff with VB.NET. My first reaction is that this is absurd. They both compile to the same IL, right?
Now I've done a little C#, but on the whole I suffer from curlybraceaphobia, so I'm looking for amunition to defeat his claim. Can anyone point me to an article or anything official looking that states that neither language
is faster than the other?
If you write VB.NET code with Option Strict On, there's no discenable
difference. There are subtle (Emphasis on Subtle) differences here and
there, but they aren't totally in favor of one language over the other. Dan
Appleman and many others have written on this and have documentation to
support it..
If you don't have on Option Strict (which is code for saying Option Slow
On), then there are bid differences, but that's not the fault of the
language (except for the fact VB.NET has it off by default).
"Adam J. Schaff" <as*****@cascocdev.com> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl... My boss's boss has heard a rumour that C# is faster than VB.NET and is now concerned because we are writing stuff with VB.NET. My first reaction is that this is absurd. They both compile to the same IL, right?
Now I've done a little C#, but on the whole I suffer from
curlybraceaphobia, so I'm looking for amunition to defeat his claim. Can anyone point me to
an article or anything official looking that states that neither language is faster than the other?
Hi Adam,
VB.net has extra above C# the Microsoft.Visual basic functions.
(Mostly string functions) We did more times tests in this newsgroup.
Those functions are mostly faster than so called System methods. (both are
dotNet)
But the differences are only if you have really a very big amount of string
comparising in your programs.
For that you can say VB.net is faster than C# because for the rest they both
use the same dotNet code (when I forget the unsafe code which you probably
not want to use for your applications but which is possible with C# and not
with VB.net it is an extra, you do not need to use it in C# only if you go
deep in the operating system)
There has been a big discussion in this and the C# newsgroup last week from
a site where was a comparising between the two codes. (I thought that he was
in this newsgroup not complete anymore, but it is complete in the C#
newsgroup)
In the begin the people from the C# newsgroup act the same as Sven Rutten,
at the end they took it back. Most opinions say than can be a difference,
but it is not measurable. Have a look at it, because there are links in that
also.
I hope this helps
Cor
Hi Bill,
That I did not want to write, but true of course, maybe extra to write that
option Strict off is typical for upgrading from VB6 and that those people
who do not change that, have slower programs than when it was new written in
C#. (or VB.net)
Cor
Don't let him find out VC++ runs about three times as fast as either of them. C# runs probably in the range of 10% to 15% faster from everything I've read.
* "Adam J. Schaff" <as*****@cascocdev.com> scripsit: My boss's boss has heard a rumour that C# is faster than VB.NET and is now concerned because we are writing stuff with VB.NET. My first reaction is that this is absurd. They both compile to the same IL, right?
Yes -- it's absurd. If you are good at VB.NET, you will be able to
write programs which run as fast as the well-written C# "pendant". If
you write bad code, both applications, written in VB.NET or C#, will be
slow.
Now I've done a little C#, but on the whole I suffer from curlybraceaphobia, so I'm looking for amunition to defeat his claim. Can anyone point me to an article or anything official looking that states that neither language is faster than the other?
Do you know any article saying that C# is faster? I know one article,
the link was posted some days ago, but the benchmarks were not
well-done.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Hi Sean,
I do not believe that a SQL server bound internet application works 3 times
faster with VC++ than with whatever other language. (I also do not say it is
not).
If you say it is, it says more about you than about your answer.
Just my thougth
Cor Don't let him find out VC++ runs about three times as fast as either of
them. C# runs probably in the range of 10% to 15% faster from everything
I've read.
Come on now, that's kind of Apples and Oranges though....=) You are no longer discussing the speed of the language, you are talking speed of external factors. Write a good search algorithm in all three and come back and tell me VC++ it isn't three times faster. On the whole, the language's computational speed usually isn't the limiting factor in speed I will agree wholeheartedly, but that wasn't the question....=
Sean
Hi Sean,
I am glad that we agree.
(Only the question was wich is the fastest, for me that is more complex than
only a partial speed in processor memory operations, but it can be that I
read it in another way than you).
:-)
Cor Come on now, that's kind of Apples and Oranges though....=) You are no
longer discussing the speed of the language, you are talking speed of
external factors. Write a good search algorithm in all three and come back
and tell me VC++ it isn't three times faster. On the whole, the language's
computational speed usually isn't the limiting factor in speed I will agree
wholeheartedly, but that wasn't the question....=)
Thanks to everyone who answered. It seems like this is a hot topic! I was
able to locate a thread on the csharp newsgroup that goes into this in
depth.
I really wish the guy who wrote that article had taken a closer look at his
own findings and tried to explain them before just posting it as "the
answer". VB.NET looked bad because he didn't use the framework's built-in
stream classes for I/O. While it is interesting and even useful to learn
that the stream classes are faster than the backwards compatible I/O
functions, it has nothing to do with whether VB.NET is slower or faster than
C#. [Grumble, grumble, rant, rant, rant.]
I would like to see MS officially rebutt some of these attacks on VB.NET. It
would be handy to have something to point to when a customer tells me "Well,
I like your program but why did you write it in VB.NET? I heard that it's
slower than C#."
Oh well.
Hey, they are customers. Just do what the sales people do...look them straight in the eye and just make something up.
----- Adam J. Schaff wrote: -----
Thanks to everyone who answered. It seems like this is a hot topic! I was
able to locate a thread on the csharp newsgroup that goes into this in
depth.
I really wish the guy who wrote that article had taken a closer look at his
own findings and tried to explain them before just posting it as "the
answer". VB.NET looked bad because he didn't use the framework's built-in
stream classes for I/O. While it is interesting and even useful to learn
that the stream classes are faster than the backwards compatible I/O
functions, it has nothing to do with whether VB.NET is slower or faster than
C#. [Grumble, grumble, rant, rant, rant.]
I would like to see MS officially rebutt some of these attacks on VB.NET. It
would be handy to have something to point to when a customer tells me "Well,
I like your program but why did you write it in VB.NET? I heard that it's
slower than C#."
Oh well.
conspiracy theorist?
i have this eerie feeling that MS is gonna sell us (vb mortals) all out real soon. sooner or later we all have to deal with our own curlybraceaphobia.
> Hey, they are customers. Just do what the sales people do...look them
straight in the eye and just make something up.
lol. Reminds me of another story...
One day the manager comes to the Software Developer with a new project. The
Software Developer figures it'll take 5 months to do, but tells the Manager
6 months just to be on the safe side.
The Manager figures that the Developer built in a safety margin, so takes a
month off and tells the Sales manager it'll be ready in 5 months.
The sales manager turns around to the customer and says that the finished
product will be ready in 2 weeks.
"Trev Hunter" <hu*********@hotmail.com> wrote in message
news:O3**************@TK2MSFTNGP11.phx.gbl... but on the whole I suffer from curlybraceaphobia,
lol. Sounds like your boss suffers from "non-curlybraceaphobia" ;)
More likely he is just a curlybraceaphile (always avoid the
double-negative).
/Al
"Trev Hunter" <hu*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Hey, they are customers. Just do what the sales people do...look them straight in the eye and just make something up.
lol. Reminds me of another story...
One day the manager comes to the Software Developer with a new project.
The Software Developer figures it'll take 5 months to do, but tells the
Manager 6 months just to be on the safe side.
The Manager figures that the Developer built in a safety margin, so takes
a month off and tells the Sales manager it'll be ready in 5 months.
The sales manager turns around to the customer and says that the finished product will be ready in 2 weeks.
This, in turn, reminds me of an incident in my working life. It took place
in the mid 1970s so we are talking history, but some things never change.
I was a Developer. We were bidding on a project that was rather complex.
There was only one other development company in the bidding. I gave the
customer an honest estimate that the project would take 12 months to
complete. (The salesman didn't get in the way because I talked directly to
the customer.) The competitor said they could complete it in 2 months. I
pointed out to the customer that this was an unrealistic estimate -- there
was no way it would be completed in that time.
The competitor got the contract.
After a year had gone by, the customer contacted us again saying that the
competitor was still working on the project -- it was buggy. They wondered
if we could take over that job and asked for an estimate as to how long it
would take to do a replacement project. As you might guess, I told them
that it would take me about a year. They, of course, balked. They said
that it couldn't possibly take a year because I had the existing 12 months
of effort by the competitor to base my work on.
The competitor promised that only a further 2 months of effort would be
required and the job would be done. They wondered if I could take over the
competitor's and finish it. I took a look at their solution and gave them
an estimate of 12 months. This realistic estimate was based on needing to
rip the existing mis-designed solution apart and really do it all over
again.
Again they decided to let the competitor "finish."
Another year later they _still_ didn't have a completed project. And so it
goes.
====================================
The Development company that lies and claims a low time estimate gets the
contract and can then extend it indefinitely. The company that is honest
about how long it will take doesn't get the work. Our sales staff learned
this lesson perfectly and in selling my services began to cut my estimates
to 1/3 to make them palatable to the customers.
Remember, the point of the salesman is to get the contract.
"Adam J. Schaff" <as*****@cascocdev.com> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl... My boss's boss has heard a rumour that C# is faster than VB.NET and is now concerned because we are writing stuff with VB.NET. My first reaction is that this is absurd. They both compile to the same IL, right?
Now I've done a little C#, but on the whole I suffer from
curlybraceaphobia, so I'm looking for amunition to defeat his claim. Can anyone point me to
an article or anything official looking that states that neither language is faster than the other?
Just show your Boss's Boss the last salary survey from Visual Studio
magazine, showing C# programmers cost $25k more than VB.NET programmers.
Thats a lot of $$$ for what is in most business applications a miniscule and
irrelevant performance gain.
But then again, depending on your management, they might conclude that the
salary difference means a C# program is 33% better than the same one written
in VB.NET.
Good luck! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: William C. White |
last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using
cURL? Our website is hosted on a shared drive and the webhost company
doesn't installed additional software (such as cURL)...
|
by: Albert Ahtenberg |
last post by:
Hello,
I don't know if it is only me but I was sure that header("Location:url")
redirects the browser instantly to URL, or at least stops the execution of
the code. But appearantely it continues...
|
by: James |
last post by:
Hi,
I have a form with 2 fields.
'A'
'B'
The user completes one of the fields and the form is submitted.
On the results page I want to run a query, but this will change
subject to which...
|
by: Ollivier Robert |
last post by:
Hello,
I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9
system. The link succeeds but everytime I try to run php, I get a SEGV from
inside the libcnltsh.so library.
...
|
by: Richard Galli |
last post by:
I want viewers to compare state laws on a single subject.
Imagine a three-column table with a drop-down box on the top. A viewer
selects a state from the list, and that state's text fills the...
|
by: Albert Ahtenberg |
last post by:
Hello,
I have two questions.
1. When the user presses the back button and returns to a form he filled
the form is reseted. How do I leave there the values he inserted?
2. When the...
|
by: inderjit S Gabrie |
last post by:
Hi all
Here is the scenerio ...is it possibly to do this...
i am getting valid course dates output on to a web which i have designed
....all is okay so far , look at the following web url
...
|
by: Jack |
last post by:
Hi All,
What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g.
select x from y where z=:parameter
Which in asp/jsp would be followed by some statements to bind a value...
|
by: Sandwick |
last post by:
I am trying to change the size of a drawing so they are all 3x3.
the script below is what i was trying to use to cut it in half ... I
get errors.
I can display the normal picture but not the...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |