lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 11/27/18, Tim Hill <drtimhill@gmail.com> wrote:
> In fact we were able to realize this very thing in our last project with
> Lua, in which pretty much the whole of the Lua VM, libraries, CPU stack and
> current set of Lua registers (stack frame) were all held in L1 cache on the
> CPU. In effect, the CPU at that point *IS* micro-coded for the Lua VM, and
> we saw spectacular performance from the VM as a result.

Wow! How much tuning did it take to get all that to fit in the L1? I'm
guessing you could strip down much of the libraries and wouldn't need
e.g. the parser at runtime, but just the VM alone looks like it'd
almost fill the cache without some extra work.