3 ms·
Thank you for your explanation. My understanding is that determining jump target at compile time is a big source of performance gain at runtime. If you know th
by samsquire 4y ago
Thank you for your explanation.
My understanding is that determining jump target at compile time is a big source of performance gain at runtime. If you know the function to jump to at compile time and not wait to runtime to decide where to jump.
I've looked into arrays of structs and structs or arrays for performance. But I am curious how to create a managed language that is fast. I think we look Java and C# for guidance.
- kaba0 4y ago> If you know the function to jump to at compile time and not wait to runtime to decide where to jump Well, I don’t know about more dynamic languages, but single dispatch can be very well optimized away, Java for example can determine how many possible implementation of a given method is loaded, and simply JIT compile or even inline the function if there is only a single implementation. Later, it can deoptimize that call, e.g. when a new class is loaded at runtime that also implements that method. This is one area where JIT is definitely in a better position than AOT compilers.