The JIT (just-in-time compilation) is a method to improve the run-time performance of computer programs based on byte code (virtual machine code).
76
votes
11answers
17k views
What backs up the claim that C++ can be faster than a JVM or CLR with JIT? [closed]
A reoccurring theme on SE I've noticed in many questions is the ongoing argument that C++ is faster and/or more efficient than higher level languages like Java. The counter-argument is that modern JVM ...
12
votes
5answers
3k views
JIT compiler for C, C++, and the likes
Is there any just-in-time compiler out there for compiled languages, such as C and C++? (The first names that come to mind are Clang and LLVM! But I don't think they currently support it.)
...
11
votes
3answers
4k views
Why after each restart, my local .NET sites take time to load for the first time?
I'm developing sites based on .NET platform. I usually deploy these sites on my local IIS, so that I can test them and see their functionality before going live. However, each time I restart windows, ...
10
votes
2answers
707 views
Compiler optimization examples
I'd like to see (good) examples of optimizations performed by compilers (static and JIT). Why?
To learn what we don't have to optimize ourselves (often leading to better code)
To be amazed
7
votes
13answers
3k views
Would a statically typed alternative to JavaScript on webpages be practical?
Preference for dynamic and static typing is largely a matter of taste, and different people find them more or less suitable in different situations.
My question is, would it be technically possible ...
6
votes
5answers
855 views
Why is it called Just In Time?
I know what the JIT compiler is but how about why is it called that, it obviously catches exceptions Just in Time, but how and why should it be called this?
Sorry if this sounds a bit vague.
4
votes
1answer
356 views
Pros and cons of JIT and AOT
In which respects "Just In Time" compilation is better than "Ahead Of Time" compilation? And vice versa.
Is AOT same as direct native compilation?
4
votes
1answer
272 views
Does current JIT optimize generated machine codes for branch prediction based on runtime statistics?
Some JVMs would compile Java byte code into native machine code. We know that there are lots of optimizations we could apply for that. Recently, I also learn that a branch operation may block the CPU ...
4
votes
4answers
489 views
Java/C# - When should AOT be considered if reverse engineering is a concern?
Long and short is really in the question title. For a language which compiles to an intermediate language like MSIL or Java byte-code, if there's concern about something like reverse engineering or ...
3
votes
1answer
67 views
Expensive AOT Optimizations
I've seen it stated several times that AOT can run some more expensive optimizations that take too long to be used by a JIT. But I've never seen it stated what exactly these optimizations are. So I'm ...
2
votes
4answers
1k views
Learning more about Java Hotspot/JVM and JIT? [closed]
On SO I was told there aren't really any good sources to learn about the JVM (Hotspot in particular) and JIT.
Is this true and if not, could I have some recommendations for books/websites/oracle ...
0
votes
0answers
23 views
Debugging assembly generated at runtime [migrated]
I'm currently working on an Xbox emulator in Visual Studio 2012 that uses just-in-time (JIT) compilation to hopefully speed up the emulation.
One of the things I want to be able to do is debug the ...
-1
votes
1answer
82 views
Does Jar file shrinker affect performance
I've heard ProGuard's Jar shrinker affects the performance of you application. Is this true? And if so just how much slower does the Jar go shrinked compared to unshrinked?
-4
votes
4answers
473 views
Are Java developers becoming less important as JVM/JIT capabilities grow?
(I am asking this from a low latency perspective, but I guess the question applies in normal business domains).
I am deciding whether to try and specialise in C++ or Java for low latency.
My issue ...