summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-11-17 02:44:30 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2019-07-11 00:09:54 -0500
commita332924f68e1237ec69af84ef10362fd9b4623c3 (patch)
tree5ae8ad47430b1befb87d259c636b3789f558350b /debian
parentc6fcb1cf45b249b059c2d53a062f9a6c7f449047 (diff)
downloadrockbox-a332924f68e1237ec69af84ef10362fd9b4623c3.tar.gz
rockbox-a332924f68e1237ec69af84ef10362fd9b4623c3.zip
lua late bound cfunction tables
We have quite a bit of ram tied up in lua with our c libraries I was searching for a way to free up some of this when I came across read only tables in e-lua but that involved a lot of patching through the source Instead I came up with this.. it frees about 15k ram without much slowdown in code execution since after a function gets called it is automatically added to the table If you have a performance issue you can call the bind method to bind a specific function or the whole table in one shot for instance rb table rb("lcd_clear") -- binds/returns function rb.lcd_clear() rb(nil) -- binds every function in rb table + removes latebind metatable .. -- added pairs and ipairs code from lua 5.2 -- cleaned up code + made more seamless existing fields are now saved rather than overwritten when table is bound Change-Id: I1c20e76b736c032dedc727d2e58928641e40191d
Diffstat (limited to 'debian')
0 files changed, 0 insertions, 0 deletions