[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: late binding functions to save ram on embedded systems
- From: me the user <me.theuser@...>
- Date: Wed, 12 Sep 2018 11:54:46 +0000 (UTC)
>That looks like a nice idea, one that is much easier to implement and maintain. I am the author of the LTR patch and I fully agree that maintaining it between various >versions of Lua is a nightmare, which is why I never tried to apply it to Lua 5.2 and above. Did you run some benchmarks to check how much memory your solution >saves?
Bogdan, I was able to add the baselib as well as a few other tables that couldn't be readonly
using luas garbage collection memory counting
I got 19KB ram saved at load
versus the 15KB I got with your LTR patch
> I have written a (limited)
> port[1] of eLua's rotables using the Lua C
> API. Maybe you are interested. You'd still
> have to patch the Lua
> standard modules to
> actually use those rotables, though.
> Philipp
> [1]:
> https://github.com/siffiejoe/lua-rotable
Phillipp, Thanks I'll have a look into your module unfortunately no stdlib
so bsearch will have to go right off the bat but it looks like we had similar ideas