Current Lua downloadable firmware will be posted here

User avatar
By dpwhittaker
#10031 I find it interesting that files produced by node.compile() are roughly 50% larger than their source counterparts. Is lua bytecode that verbose, or is there some extra debug info being stored in there that we could do without?
User avatar
By Dilato
#10691
dpwhittaker wrote:I find it interesting that files produced by node.compile() are roughly 50% larger than their source counterparts. Is lua bytecode that verbose, or is there some extra debug info being stored in there that we could do without?

For me the compiled (.lc) script(s) are smaller then their source (.lua)

name:ds18b20.lua, size:3418
name:ds18b20.lc, size:2180

name:DS18B20Simple.lua, size:1516
name:DS18B20Simple.lc, size:992

I did some more tests and found one file that actually got slightly larger
name:TermoLED.lua, size:2392
name:TermoLED.lc, size:2404

I don't know why...