lua-users home
lua-l archive

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


> >  p.x = 1; p.x = 1; p.y = 1; p.z = 1; p.z = 1; p.z = 1; p.y = 1;
> > 
> > This is 40%-50% slower with table-based proxies vs. userdata
> > proxies. The actual cost is much higher -- it's shadowed by the
> > interpreter overhead.
> 
> Interesting. Does this suggest that if newproxy were to go away, there
> should be a short-circuit path for setting values in empty tables --
> i.e., tables essentially being used as proxies?

I think we should see the costs in real programs.

-- Roberto