[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Joining tables
- From: "Alexander Gladysh" <agladysh@...>
- Date: Fri, 17 Mar 2006 21:41:21 +0300
> > How to do it most effectively?
> Is that too slow?
> for aKey, aValue in pairs( aTable ) do
> anotherTable[ aKey ] = aValue
Well, I haven't tested. :)
However, since there are sophisticated hashing and array-optimization
mechanisms behind Lua tables, I thought there can be some specialized
way to merge them, which would be faster than straight for loop of
key-value assignments. Am I wrong?