did You read from the beggining of this article?
I’ve only had time to skim it, which is why I said I may be mis-reading. Thanks for quoting the exact line. However, I still don’t see what that line is saying about performance. It describes how the implementation works, but doesn’t say anything about performance.
The only reference to performance I see on that page is the line I quoted. Here it is again with preceding lines for more context:
It handles inheritance by copying the fields of the base class into the derived class. This isn’t the only way of doing inheritance; we could make __index a function which explicitly tries to look a function up in the base class(es). But this method will give better performance, at a cost of making the class objects somewhat fatter.
Although it is talking about fields and not methods, the same logic should apply (or rather I think it should also apply; please refute if I am incorrect.) This quote specifically states that copying data from the base class gives better performance but at the cost of greater memory usage.
–
Honestly though this kind of feels like a moot point to me. I doubt either CPU speed or code memory would be the bottle-neck for an iPhone game/Corona app; texture memory would run out first, so this entire discussion feels a bit like premature optimization to me. [import]uid: 12108 topic_id: 5342 reply_id: 17813[/import]