Hey hey!

I'm about to start using Terra for a pretty large project and I was wondering a little bit about the status and plans for profiling support for Terra that exists now and that's coming up in the future. LuaJIT 2.1 has added support for profiling and it's proven essential to figure out how to make code run faster. I was trying to benchmark luajit with minilight (http://www.hxa.name/minilight/) comparing it to the performance of C. It was about 10x slower and when profiling it seemed to be due to it pretty much not using the JIT at all, instead always falling back to the interpreter because of the current register handling in luajit.

So when using Terra it would be super useful to be able to figure out where LuaJIT is doing things the wrong way, so that I can replace the troublesome functions with terra functions instead. Which would allow me to easier balance using (possibly) more productive high level code a lot of the time without sacrificing control of performance.

As such, I'm wondering if the LuaJIT 2.1 profiling support will be added to Terra when it's finally released, and also if maybe Terra has any plans for profiling Terra code to find hotspots etc. Something that could also be useful.

Thanks!

Best regards,
Isak Andersson
_______________________________________________
terralang mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/terralang

Reply via email to