[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: What would you remove from Lua - a case of regression?
- From: Muh Muhten <muh.muhten@...>
- Date: Wed, 28 Nov 2018 02:29:45 -0500
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.