[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Performance vs flexibility
- From: Dirk Laurie <dirk.laurie@...>
- Date: Thu, 8 Jan 2015 14:22:05 +0200
2015-01-08 14:11 GMT+02:00 Marco Bambini <firstname.lastname@example.org>:
> 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?