lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Dear everybody:
I use lua on an embeded device, the memory is only 400KB. My engine exec lua files one after one.
And now , I do close & open lua_State to release the memory after every execution of a lua file. It's so slow.
Is there a good idea about releasing the memory used by previous lua execution which don't need to close
lua state ?
 
 
bravefly                       2010-04-13

                                                        ?
                ? ? ?                     ?  ??     ) ?
             ?           )               ?
          ?               )                          ?
      ?                     ?       ? (      ?       ?
           ?       (           )  ?    (       )
     (        ?     ? ?                 (         ?
                )          ?   ?    )    ?          )
      (        )     ?         )      _     (           )
      ?             (         )   ) ? `- '    (
         ??           ?   ?/ ?||             ?  ?   /  
              ?  ?   /  ?? ?   ?          \?│   \?
                    |  ?    │|  ?      一     \  _/\ ││  
                    ││        ?        生      \ \_/ │ ? 
                   ? │      ?      人  有       \ˇ'?  ? 
                    | |?   ?        生  你        \   │ |  
                ?\__ |? ?          不             \
              ? ??)  ?            再              \
              \∠?   ?              孤               \
              |?)  ?                独                \
                  ?