lua-users home
lua-l archive

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


2015-01-08 14:11 GMT+02:00 Marco Bambini <marco@sqlabs.net>:

> one of the criticisms about Lua is the way it uses globals (using
> an hash table instead of a regular array and so performance
> suffers when globals are accessed).
>
> I just wondering what's behind that design decision, I mean
> what's the pro and cons of having an hash table for globals
> instead of a simpler array?

What simpler array with the ability to retrieve arbitrary keys
do you have in mind?