4 ms·
I am a beginner in this space but I have some thoughts. The JVM is slow to startup but when it starts it is fast. I think it's slow due to how classes are arra
by samsquire 3y ago
I am a beginner in this space but I have some thoughts.
The JVM is slow to startup but when it starts it is fast. I think it's slow due to how classes are arranged and lookup for classes. I think Graal or CDS works to speed this up.
I like the idea of a process that is fast to startup or is ran in the background such as php-fpm.
My JIT compiler is an incomplete toy but I only compile a function when it is called.
https://GitHub.com/samsquire/compiler https://GitHub.com/samsquire/compiler
I have written about the idea of supercompilation which is the idea that we can apply lots of resources to compilation to create the most performant execution. But it requires you to be upfront and more detailed about your program semantics for safe reordering.
I think this stuff is sufficiently complicated that it is hard to read the code for without an explanation of what is going on.