Cloudflare

LuaJIT Hacking: Getting next() out of the NYI list

Feb 21, 2017Javier Guerra
LuaJIT Hacking: Getting next() out of the NYI list
SummaryAI, from the source post

This post details efforts to optimize LuaJIT performance by addressing 'Not Yet Implemented' (NYI) features, specifically focusing on the `next()` function used for table iteration. It introduces a new tool called 'loom' for better visualization and analysis of LuaJIT's JIT compilation process, and demonstrates how to improve the compilation of `next()` to avoid performance penalties associated with interpreter fallback.

More from the Data Infrastructure & Analytics trail