Log In  

Is there any difference in performance between doing this

player = {
 update = function(self)
  -- do things
 end
}

and

player = {}

function player:update()
 -- do things
end

Thank you!

P#82765 2020-10-10 07:55

nope, no difference in performance. I'd go with whichever option uses fewer tokens :)

P#82806 2020-10-11 20:40 ( Edited 2020-10-11 20:40)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 09:07:21 | 0.005s | Q:11