As the title says... Chat on...

User avatar
By yes8s
#6332 I had a webserver based program working quite well with pre-open source (pre - V0.9.4) NodeLua. After trying to run the same code with the latest version 2014-12-30 using the pre-built binary, I get reboots when enabling the webserver - I'm fairly certain this is due to heap running out , as I was already at the limit with the previous version of NodeLua.

I am aware latest NodeLua uses more heap by default due to 0.9.4 SDK and added NodeLua APIs.

I haven't had a chance to sucsessfully set up the SDK dev environment to be able to experiment with omitting unused modules from compilation but I'm curious if anyone has and if anyone can report whether any saved memory can be relatively useful. I.e. Can we get back 1k, 2k, 5k, 10k ????

The modules below highlighted in red are ones not used in my application. I would be grateful if someone who can successfully compile the source can report on what recompiling without these modules can yield in terms of memory gain.

#define LUA_USE_MODULES_NODE
#define LUA_USE_MODULES_FILE
//#define LUA_USE_MODULES_GPIO
#define LUA_USE_MODULES_WIFI
#define LUA_USE_MODULES_NET
//#define LUA_USE_MODULES_PWM
//#define LUA_USE_MODULES_I2C
//#define LUA_USE_MODULES_TMR
//#define LUA_USE_MODULES_ADC

//#define LUA_USE_MODULES_UART
//#define LUA_USE_MODULES_OW