[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [ANN] lua-conf - convert a lua table to a constant C object
- From: 云风 <cloudwu@...>
- Date: Wed, 2 Apr 2014 15:20:49 +0800
I'm pleased to announce the first release of lua-conf [1] .
lua-conf can convert a lua table to a constant C object (a
lightuserdata). And then you can share it among many lua states .
The constant C object is thread safe, so you can use it in many lua
states concurrently.
If you convert a large lua table , it will reduce the memory usage of
lua vm . So the garbage collector will run faster (mark less gc
objects).
Sometimes you need reload the lua vm , the constant data in the table
don't need parser again.
[1] https://github.com/cloudwu/lua-conf
--
http://blog.codingnow.com