Hi all,
I'm Praveen velliengiri, student from India.
I'm new to Lua & LuaJIT. I have few questions about LuaJIT,
1. whether LuaJIT supports speculative compilation in multi-threaded
environment? That is, compiling function in JIT backend threads
before the function is called for execution in runtime? But
speculatively compiling all functions can hurt the performance &
consume memory, so deciding which function is worthier to compile
speculatively is needed. Is LauJIT has any heuristics or metrics to
decide which functions are likely to get called in runtime.
We are trying to build something similar to this(speculation), in LLVM
ORC APIs. I thought it would be great to see, if LuaJIT has already
supported this or not. If yes, I would like to get some references or
benchmarks regarding this :)
Has anyone thought implementing speculative compilation in LuaJIT or in
any other compilers. Please share your experience, it would be a great
help :)
--
Have a great day!
PreeJackie