lua-users home
lua-l archive

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


> > On Thu, Nov 19, 2015 at 1:49 PM, Roberto Ierusalimschy
> > <roberto@inf.puc-rio.br> wrote:
> > >> Lua 5.3.2 (rc1) is now available for testing at
> > >>       http://www.lua.org/work/
> > >
> > > What is new:
> > >[...]
> > > - table.sort "randomize" the pivot
> > 
> > Was there a reason for using ints for the indexes (lo/up)? Why not lua_Integer?
> 
> ints are more efficient for 32-bit machines, and are big enough for normal
> cases (as arrays in Lua cannot have more than 'int' elements anyway).

(Answering myself...) Of course, the difference in performance is
certainly negligible, compared with all other operations (table
accesses, value comparisons, etc.).

Moreover, people concerned about performance in 32-bit machines should
really consider Small Lua.

-- Roberto