What's happening when initializing mruby?
summary
Initialization currently forces mruby to allocate hundreds of objects and occupy lots of RAM so a new mrbgem called mruby-bin-nvgen runs mruby ahead of time, dumps symbols and objects as C, and recompiles to move data into ROM and static data. The authors show it halved a 100+ KB footprint in early trials and can reduce mruby to 20 kilobytes of RAM using pre-execution code generation, demoed on an M5StickC with AWS IoT and Kibana.
AI-written summary · about








