Touch Event Efficiency

For my game I have several different touch function all called from a central function. Currently, I am passing in the event like so:
[lua]local function mainTouch( event )
if event.x > j then
firstTouchFunction( event )
elseif event. x > k then
secondTouchFunction( event )
else
thirdTouchFunction( event )
end
end[/lua]
How is event being passed in Lua? Would it be more efficient to create a local copy of event? If so when, do I do it at the top function or in the helper function where it would be manipulated?
Thanks [import]uid: 54716 topic_id: 10153 reply_id: 310153[/import]

I think main thing to consider is event object is or is like a table.

There is performance overhead to fetching value from an element of the table. So if you are fetching certain value from table lot of times then you should create local copy of the element value.

I doubt creating local copies of table itself will be of any use.

So to answer your question, AFAIK, you won’t have any efficiency improvement by creating local copy of event. [import]uid: 48521 topic_id: 10153 reply_id: 37087[/import]

Well are touch events objects or tables? Thanks [import]uid: 54716 topic_id: 10153 reply_id: 37173[/import]