|
Chris Maunder wrote:
If the .NET CLR isn't loaded before a program using the .NET framework is run then the framework must be first loaded and initialised. The second time a program is run this load time is not needed
Cool! Thanks for that info.
Chris Maunder wrote:
Also: which version are you running (a beta or the RTM?)
.NET beta 2.
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
You can also try running ngen on your executable/dll, that does the JIT for you.
James
Sonork ID: 100.11138 - Hasaki
"My words but a whisper -- your deafness a SHOUT.
I may make you feel but I can't make you think." - Thick as a Brick, Jethro Tull 1972
|
|
|
|
|
What does it do? Convert CLR binaries to native binaries?
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
Sort of; one of the features of the CLR is to be able to tell it to re-JIT a method (according to John Lam anyway ). To do this when a method is JIT'd its vtable pointer is simply replaced with the location of the JIT'd method; before the JIT they all point to a stub method which tells the CLR to do the JIT.
I'm basing this on what I've gleaned from the DOTNET mailing list, and I just woke up so I probably have some info wrong :-P.
James
Sonork ID: 100.11138 - Hasaki
"My words but a whisper -- your deafness a SHOUT.
I may make you feel but I can't make you think." - Thick as a Brick, Jethro Tull 1972
|
|
|
|
|
C# will not be the language of choice if You have any interest
in execution speed. C# is ok for GUIs and some networking
requests, but not for big apps.
So far I have not seen any usable Java program except in web
browsers. Corels Office suite has never been finished because
the performance is extremely poor.
Recent tests in a computer magazine state that the speed of C#
is comparable to Java. No wonder, the concepts behind both
are quite similar.
I give managed C++ a very good chance to become the most popular
next generation language. The mixing of managaned and unamanaged code
makes migration very easy plus the managed part runs only slightly
slower than unmanaged code. Code reuse and extensibility are nearly
unlimited because of the very rich existing C++ sources already avaliable.
|
|
|
|
|
Interesting..
akraus wrote:
Recent tests in a computer magazine state that the speed of C#
is comparable to Java
Do you have any link you can post?
|
|
|
|
|
Anonymous wrote:
akraus wrote:
Recent tests in a computer magazine state that the speed of C#
is comparable to Java
Do you have any link you can post?
maybe if its a web magazine
Everyone welcome the NewbiE!!!!
First Programmer: "How many bits are in a bite?"
Second Programmer: "You spelled bytes wrong."
First Programmer: *stares* "It's a joke, moron."
Second Programmer: "Joke...?"
|
|
|
|
|
The magazine emphasizes that Microsoft does not allow performance
tests before the final release of .NET. So they only said,
that preliminary tests indicate that the speed of C# is comparable
to Java. And no I will not name the name of the law braking magazine.
Too many Microsoft employees out there ![Laugh | :laugh:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_laugh.gif)
|
|
|
|
|
akraus wrote:
And no I will not name the name of the law braking magazine.
Too many Microsoft employees out there
If that's the case, then the magazine has broken the law already, and thus you shouldn't worry about what you do as a magazine reader..
|
|
|
|
|
Sorry I have no link. You have to go to the store and buy it.
And You must be able to read german
The magazine is c'T Computer Technik Magazin and definitly one
of the best avaliable. German press has still some high quality
magazines which have competent and independent editors.
|
|
|
|
|
This is dumb.
1/ Why would you expect accurate results from tests on a beta ?
2/ How can M$ stop people from doing performance tests ?
3/ How does doing what M$ doesn't want constitute breaking the law ?
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
Christian Graus wrote:
2/ How can M$ stop people from doing performance tests ?
They can't stop them, but by doing so you break your EULA with using the software, thus losing your license causing your further use of it to be illegal.... If you live in a country that abides by EULAs that is.
Christian Graus wrote:
3/ How does doing what M$ doesn't want constitute breaking the law ?
See above
James
Sonork ID: 100.11138 - Hasaki
"My words but a whisper -- your deafness a SHOUT.
I may make you feel but I can't make you think." - Thick as a Brick, Jethro Tull 1972
|
|
|
|
|
James T. Johnson wrote:
They can't stop them, but by doing so you break your EULA with using the software, thus losing your license causing your further use of it to be illegal.... If you live in a country that abides by EULAs that is
You can post an anonymous "speed test results".
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
<small><b><B><I>C</B>hristian <B>G</B>raus</I> wrote:
</b></small><i>1/ Why would you expect accurate results from tests on a beta ?</i>
Yes!!! Java is like beta-software reliability, so surely it's a fair test???
<flame suit on>
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
Anonymous wrote:
Do you have any link you can post?
Ya, good question. It wasn't long ago that Chris posted an article here about some benchmarks done by Microsoft which proved that C#/.NET was significantly faster than Java/J2EE.
Regards,
Alvaro
Behind a beautiful woman there's usually a guy who just couldn't wait to get rid of her.
|
|
|
|
|
The Petstore sample??
check out this interesting thread:
http://www.theserverside.com/discussion/thread.jsp?thread_id=9797
|
|
|
|
|
akraus wrote:
Recent tests in a computer magazine state that the speed of C#
is comparable to Java.
I did my own little benchmarks, and I came to the same conclusion.
akraus wrote:
C# is ok for GUIs and some networking
requests, but not for big apps.
C#, just like Java, is great for server-side apps. There you can always improve performance by adding hardware, which is usually cheaper than to develop C++ code.
I vote pro drink ![Beer | [beer]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/beer.gif)
|
|
|
|
|
akraus wrote:
give managed C++ a very good chance to become the most popular
next generation language. The mixing of managaned and unamanaged code
makes migration very easy plus the managed part runs only slightly
slower than unmanaged code.
The managed parts compile to the IL, same as C#, but will run only SLIGHTLY slower ? You've contradicted yourself here.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
>I give managed C++ a very good chance to become the most popular
>next generation language. The mixing of managaned and unamanaged code
>makes migration very easy plus the managed part runs only slightly
>slower than unmanaged code. Code reuse and extensibility are nearly
>unlimited because of the very rich existing C++ sources already avaliable.
"most popular?" hmm.. I would agree on powerfull
- Code reuse will be mainly achieved by component-oriented programming (=assemblies). Code re-use for C++ ist highly dependable upon your programming style (I do not know too many people that actually take full benefit from the Standard library ideas and tools, which is quite a shame). Still some people use MFC just for CString. (these are probably the people that do programming for a living, I know )
- Java developers now can target the .NET platform (about 3mio people?? skilled ?)
- A newcomer does not even have a dialog editor for managed c++ (ok this might sound lame for a pro), this it keeps people from doing their first steps in .net in c++.
- There is no marketing team that pushes C++. its the C# vs Java thing
- Calling native libs is realized using PInvoke too, so using unmanaged c++ code /w managed c++ code for optimal performance might not be the only way to speed things up (you could use PInvoke and any native lib)
- C++ can (<- !) be very complicated and confusing for newbies. Some people do not get the difference between C and C++.
Of course, time will tell. But since marketing and tools set the pace ..
|
|
|
|
|
C# is compiled to native machine code right before it's executed. It's not "interpreted" like it would be in a Java VM, therefore it's faster.
- Jason
Do you have a Pulse?
SonorkID: 100.12194
's your uncle
|
|
|
|
|
Jason Hooper wrote:
therefore it's faster
Theory, theory... Try to measure for yourself.
I vote pro drink ![Beer | [beer]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/beer.gif)
|
|
|
|
|
Jason Hooper wrote:
C# is compiled to native machine code right before it's executed. It's not "interpreted" like it would be in a Java VM, therefore it's faster.
Can someone explain how this "compilation" happens ? I have not really kept up with .NET
Does the .NET runtime compile the entire IL files into ASM before starting ? Is it a JIT compiler like Java's ?
Thanks -
|
|
|
|
|
It's a JIT compiler - it compiles every line before it uses it for the first time, then keeps the compiled code in memory for subsequent calls.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
And it saves the compiled binaries to disk for later use...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|