lua-users home
lua-l archive

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



Ultimately, a core level serializator could create pure bytecode runnable as such on the same version Lua core. Now it goes like data -> string -> transport -> parser -> run -> data.

This will become worth considering if the use of multicore Lua starts to fly. And on the other hand, having "furiously fast" serialization would maybe help it do so.

-asko


On Mon, 19 Mar 2007 14:34:28 +0100
 Philippe Lhoste <PhiLho@GMX.net> wrote:
Roberto Ierusalimschy wrote:
A furiously fast (but still pleasant on the eyes :) serialization function would indeed be handy. The multicore performance seems to be largely dependent on serialization speed.

Of course, this only applies if tables are used for passing things over. But -then again- Lua is all about tables, so they should be efficiently and transparently usable in multicore applications, too.

What Say Lua Authors on this?

You mean adding table serialization to the core libraries? The problem is that there is no one-size-fits-all solution. A robust serialization is not good for visualization, cycle handling slows down the algorithm,
etc.

I agree.
Plus it probably won't work in all cases (functions with closures, userdata...) so you will get complains that it is broken...

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --