Hi all,
i need to choose a langage for porting my vb application to dot net 2.0
in november.
For some components, low-level components, i want to know if it can be
better to use specific .net language.
Basicaly, i want to know if
- managed c++ execution is faster than C# execution
- C# execution is faster than VB.Net execution
in fact, to know the speed classement between the languages using the
framework.net.. .
Thanks for your answers
Nicolas H. 9 1660
i havent used managed c++ but there is zero difference between VB.NET and C#,
the msil produced is near enough identical.
There are some performance advantages (!) in using VB.NET when it comes to
string handling etc, the VB.NET compiler can optimize Mid rather than using
substring but the end result is trivial.
choice of langauge is more a case of what you are used to, if you come from
a c++/java background go c#, if you are a VB person stick with vb.net
hth
guy
"ni************ *@motorola.com" wrote: Hi all,
i need to choose a langage for porting my vb application to dot net 2.0 in november.
For some components, low-level components, i want to know if it can be better to use specific .net language.
Basicaly, i want to know if - managed c++ execution is faster than C# execution - C# execution is faster than VB.Net execution
in fact, to know the speed classement between the languages using the framework.net.. .
Thanks for your answers
Nicolas H.
ok, thanks a lot for your answer
I'm really interested with speed comparaison between managed C++ and C#
for example
i don't really think that managed C++ produced the same msil
If someone can answer this question, that would be great
thanks in advance
Nicolas H.
guy <gu*@discussion s.microsoft.com > wrote: i havent used managed c++ but there is zero difference between VB.NET and C#, the msil produced is near enough identical.
No, it's not. There are a few cases where they generate different
enough IL that the JIT can inline the C# version but not the VB.NET
version. If you happen to be unlucky, that *could* make a significant
difference. Most of the time it wouldn't, but
There are some performance advantages (!) in using VB.NET when it comes to string handling etc, the VB.NET compiler can optimize Mid rather than using substring but the end result is trivial.
Do you have any examples of this? I believe Mid uses Substring
internally, so I don't see how it could be faster.
--
Jon Skeet - <sk***@pobox.co m> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jon, No, it's not. There are a few cases where they generate different enough IL that the JIT can inline the C# version but not the VB.NET version. If you happen to be unlucky, that *could* make a significant difference. Most of the time it wouldn't, but
Are you *100%* sure that a kind of this cannot be as well for VB.Net to C#?
Cor
Cor Ligthert [MVP] <no************ @planet.nl> wrote: No, it's not. There are a few cases where they generate different enough IL that the JIT can inline the C# version but not the VB.NET version. If you happen to be unlucky, that *could* make a significant difference. Most of the time it wouldn't, but
Are you *100%* sure that a kind of this cannot be as well for VB.Net to C#?
While I don't know every bit of IL that can be generated, I've only
heard about it (and tested it for myself) with the C# compiler
generating the leaner code (in terms of bytes of IL; there are more IL
instructions, but they're shorter). I also believe VB.NET adds NOPs in
when it doesn't need to in some situations. I should add that all this
is with 1.1 - the 2.0 JIT probably has different inlining rules, and
the compilers may well be generating different code anyway.
I'd be happy to be shown an example where the VB.NET IL is faster, of
course. I suspect that if they exist I'd have heard about them, but
that doesn't mean they definitely don't exist. (Note that my post
didn't claim they didn't exist, either.)
--
Jon Skeet - <sk***@pobox.co m> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nicolas,
This is something done in long arguing in more dotnet newsgroups, where
often Jon (and Jay) and me were involved, while Jon mostly and I sometimes
did some testing.
If it is about constants, than concatinating is as we have seen quicker.
Be as well aware that running in the IDE can give an other performance
result than running it as exe.
I hope this gives an idea
Cor
<ni************ *@motorola.com> wrote: this article is interesting http://www.codeguru.com/columns/Kate/article.php/c5647/
but they don't talk about managed c++, which is my interest
Shame it also misses the point of string.Concat, which is that it can
concatenate *multiple* strings in one call. Yet another article on
string performance which states a generality on the basis of one bad
usage...
--
Jon Skeet - <sk***@pobox.co m> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
I suppose that managed c++ is the same speed when CLR objects are used,
but when it has native code, it should be as fast as before.
do you think the same / it's right ?
Nicolas H. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Yang Li Ke |
last post by:
Hi guys,
Is it possible to know the internet speed of the visitors with php?
Thanx
--
Yang
|
by: Jacek Generowicz |
last post by:
I have a program in which I make very good use of a memoizer:
def memoize(callable):
cache = {}
def proxy(*args):
try: return cache
except KeyError: return cache.setdefault(args, callable(*args))
return proxy
which, is functionally equivalent to
|
by: Maboroshi |
last post by:
Hi I am fairly new to programming but not as such that I am a total beginner
From what I understand C and C++ are faster languages than Python. Is this
because of Pythons ability to operate on almost any operating system? Or is
there many other reasons why?
I understand there is ansi/iso C and C++ and that ANSI/ISO Code will work on
any...
|
by: Fred Bennett |
last post by:
I have a simulation project in which data can naturally be held in
structures for processing. There are calls to multiple functions
involved. Execution speed is an issue. Do I take a big hit for usuing
structures? Is there a preferred way of passing the structures (or
pointers?) that would speed up the program?
I'm relatively new to C++....
|
by: Rogers |
last post by:
I want to compare strings of numbers that have a circular boundary
condition. This means that the string is arranged in a loop without an
end-of-string. The comparaison of two strings now becomes a different
operation than with regular strings because the circular string can be
"rotated", like this:
1 2 3 4 5
2 3 4 5 1
3 4 5 1 2
4 5 1...
| |
by: Sezai YILMAZ |
last post by:
Hello
I need high throughput while inserting into PostgreSQL. Because of that I
did some PostgreSQL insert performance tests.
------------------------------------------------------------
-- Test schema
create table logs (
logid serial primary key,
ctime integer not null,
|
by: nicolas.hilaire |
last post by:
Hi all,
i need to choose a langage for porting my vb application to dot net 2.0
in november.
For some components, low-level components, i want to know if it can be
better to use specific .net language.
Basicaly, i want to know if
- managed c++ execution is faster than C# execution
|
by: charles.lobo |
last post by:
Hi,
I have recently begun using templates in C++ and have found it to be
quite useful. However, hearing stories of code bloat and assorted
problems I decided to write a couple of small programs to check. What I
expected was that there would be minor code bloat and some speed
improvement when using templates. However...
I wrote a basic...
|
by: halimunan |
last post by:
Hello all,
I have a question, how do i measure the download/upload speed... as if download rate, upload rate or kbps transfer rate.
i want to do my own windows application using C# to measure the download speed.
the idea is this.
1. i will put a file at a serverA.
2. i download the file
3. i measure the speed of the download(how long it...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |