lua-users home
lua-l archive

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



I disagree.  :)

Documenting what the core level feature would do would tell people what to expect. They still have the chance of doing their own serializators, as now, or maybe doing hybrids which use the "furiously fast" version for the applicable parts.

I.e. number passing is a simple case where converting to string representation and back only wastes CPU cycles, when done "hidden" between two cores.

-asko


Philippe Lhoste kirjoitti 19.3.2007 kello 15:34:

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
--  --  --  --  --  --  --  --  --  --  --  --  --  --