When a lua file loads it takes up some of the heap....so the heap sets some maximum size on the lau code. Now flash is 512K to 4M.
Does a 4M flash mean more heap space or does the heap only exist in RAM?
What is mostly gained with a larger flash...is it just firmware space or is it more than that?