šŸ’¬

Community answer

Collected from the ACE community Discord archive around 2022-07-29. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

table.Copy is heavyweight - use table.Add or own merge

šŸ’¬ GeneralUpdated 2 days ago•1 views
table.Copy does lots of unnecessary work - for shallow merges use table.Add(nil, src) or write your own; also each lua table index is slightly slower so cache l…

Is writing my own shallow merge better than table.Copy

table.Copy does lots of unnecessary work - for shallow merges use table.Add(nil, src) or write your own; also each lua table index is slightly slower so cache lookups.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.